-
Notifications
You must be signed in to change notification settings - Fork 25
Fix example of add_code_coverage() in README.md #13
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
Conversation
So this is clearly right -- but it breaks things slightly on my system. Are you using catkin_make or catkin tools? I'm using catkin_make, and it barfs because it runs the cleanup() later and so my .gcda files seem to be deleted... I found the following change made things work again:
|
I used catkin_make. I just stumbled upon it because I used
However, with the your change this would not be solved. |
Ok, I'm going to merge this -- but then also open a PR to put in a slightly modified version of the other change I mention. The reasoning here (for anyone who stumbles upon this):
|
there is no way to specify that _run_tests_ depends on cleanup, so our best bet is to make sure that cleanup has few dependencies and gets run early. This was only exposed by the documentation fix in #13
First of all, thanks for your comments.
This is good news. Imho anyone who does not need (or want) the cleanup command to depend on the tests target, can simply omit it in the invocation of
The cleanup comand also creates the "baseline" tracefile and that is why I need the tests to be built. So I would suggest to keep the code as it is and remove the line from the ReadMe completely. |
Only a minor fix, but it helps a lot.