Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[foxy backport] Back port various unit tests for coverage part 3-ish #1389

Conversation

brawner
Copy link
Contributor

@brawner brawner commented Oct 7, 2020

This PR backports various commits containing unit tests for increased coverage. It only contains changes for files in the test directory.

Bug fixes: #1270, #1274, #1281, #1291, #1310,
Coverage PRs: #1308, #1316

@brawner brawner requested a review from ahcorde October 7, 2020 00:06
@brawner
Copy link
Contributor Author

brawner commented Oct 7, 2020

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@brawner brawner changed the title Brawner/rclcpp backport tests part3 [foxy backport] Back port various unit tests for coverage part 3-ish Oct 7, 2020
Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Just added new tests or new test files.

@brawner brawner force-pushed the brawner/rclcpp-backport-1272 branch from be9139a to 4552f91 Compare October 7, 2020 18:35
brawner and others added 7 commits October 7, 2020 11:37
Addresses #1268 and #1269

Signed-off-by: Stephen Brawner <brawner@gmail.com>
…h samples (#1274)

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
* Add check for the correct number of messages received

Signed-off-by: Devin Bonnie <dbbonnie@amazon.com>

* Refactor duplicate code into functions
Add random jitter to generate non-zero standard deviation values

Signed-off-by: Devin Bonnie <dbbonnie@amazon.com>

* Fix warning

Signed-off-by: Devin Bonnie <dbbonnie@amazon.com>

* Fix conversion warnings

Signed-off-by: Devin Bonnie <dbbonnie@amazon.com>

* Fix style issues

Signed-off-by: Devin Bonnie <dbbonnie@amazon.com>
* Add tests serialize functions
* Add test getter const get_service_handle
* Add basic tests getters publisher
* Add == operator tests
* Improve check on QOS depth
* Remove extra line, copy directly string
* Expect specific error throws

Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
Without this change, I am unable to build locally.
std_msgs is not declared as a test dependency or find_package'd anywhere, so
I'm not sure why CI ever passed the build phase.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
* Add tests getters msg type support
* Add missing fini
* Add tests type_support services
* Reformat to re use test structure
* Remove not needed headers
* Improve teardown test cases
* Add nullptr checks to type_support tests
* Reformat type_support testing
* Replace expect tests with asserts
* "Improve error msg for rcl_service_ini/fini fail"
* Improve test readability

Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
* Add mocking utils for rclcpp

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Add coverage for wait_set_policies

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Address PR feedback

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Fix windows issues

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Add test comment

Signed-off-by: Stephen Brawner <brawner@gmail.com>
@brawner brawner force-pushed the brawner/rclcpp-backport-tests-part3 branch from 93f8947 to fc83d32 Compare October 7, 2020 18:37
@brawner brawner changed the base branch from brawner/rclcpp-backport-1272 to brawner/rclcpp-backport-tests-part1 October 7, 2020 18:37
@brawner
Copy link
Contributor Author

brawner commented Oct 7, 2020

Rebase and merging onto #1383 so that can act as the ultimate feature branch.

@brawner brawner merged commit db37a32 into brawner/rclcpp-backport-tests-part1 Oct 7, 2020
@delete-merged-branch delete-merged-branch bot deleted the brawner/rclcpp-backport-tests-part3 branch October 7, 2020 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants