Skip to content

Fix tests example - #295

Merged
mlautman merged 3 commits into
masterfrom
tests
Mar 22, 2019
Merged

mlautman merged 3 commits into
masterfrom
tests

Conversation

@mlautman

@mlautman mlautman commented Mar 8, 2019 •

Copy link
Copy Markdown
Contributor

Description

Fixes the test example in the tutorials

Depends on changes in moveit/moveit1#1409

Of interest to @rhaschke and @BryceStevenWilley

@mlautman mlautman changed the title fix tests example WIP: fix tests example Mar 8, 2019

@rhaschke rhaschke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It took me a while to understand the purpose of this PR. Please, next time, elaborate a little more about the issue you are trying to solve in a PR. I guess, you fixed and enabled the example for libmoveit_test_utils.
I just extended the Travis check for this repo to also perform a catkin build, #299. Please have a look.

Why do you move the test example from src to test folder and build it only in testing mode?
This example shall illustrate the use of libmoveit_test_utils, shouldn't it? So, it should be part of a normal build.

Comment thread doc/tests/CMakeLists.txt Resolved
@mlautman mlautman changed the title WIP: fix tests example Fix tests example Mar 20, 2019
@mlautman

Copy link
Copy Markdown
Contributor Author

@rhaschke My apologies for the insufficient description. It was getting late...

As you correctly deduced, this updates the test tutorial to use the new moveit_test_utils library.

Why do you move the test example from src to test folder and build it only in testing mode? This example shall illustrate the use of libmoveit_test_utils, shouldn't it? So, it should be part of a normal build.

I feel strongly that the tests tutorial should provide users with a template for writing their own tests. In the future, I would love to expand this tutorial to cover integration with Travis and moviet_ci. Making the example test an actual test rather than just another executable seems obvious to me but perhaps I am missing something.

@mlautman
mlautman requested a review from rhaschke March 20, 2019 19:48
@rhaschke

Copy link
Copy Markdown
Contributor

Ok, as the tutorial runs the example with catkin run_tests it should be indeed part of the testing mode.
I suggest to add links in the tutorial to refer gtest/gmock documentation:

@mlautman
mlautman merged commit adfd4eb into master Mar 22, 2019
@mlautman
mlautman deleted the tests branch April 4, 2019 19:49
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.

2 participants