-
Notifications
You must be signed in to change notification settings - Fork 938
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
Add coveralls testing coverage badge #1
Comments
@scottpaulin I unassigned myself following your comment #23 (comment). If you can give it a try that will be great. |
Sorry @130s , I should have assigned it. I have also been taking forever to get it done... Does anyone know if catkin does something special to allow ros:: package::getPath() to work? Coveralls automagically generates a make target, which creates a test executable with the package's unit tests. When I run this test executable none of the resources can be found, resulting in these errors.. Is it possible that the coveralls make target needs to be somehow catkinized, or there needs to be an environment variable set? Edit: Have tried clicking everything but possibly need to be admin to assign an issue. |
The Travis script sources the devel/install space to pull in those. However, I have prepared a fix, which will work without sourcing any workspace. This will go on top of moveit/moveit_resources#7 and #83. |
update: currently dependant on fixing failing assertions in unit tests (when debug build is used). |
@scottpaulin what is the state here? Did you upload your progress somewhere? Is there anything to upload yet? Does it make sense to label this for this wmd for someone to pick? |
I couldn't quite get it going sorry. It requires the CI to do a Debug build, which resulted in Travis timeouts at the time. Would be awesome if someone could pick it up. |
@rhaschke recently setup ccaching for Travis, and I contacted Travis a while back about expanding our build time. @scottpaulin do you think we could try this again? could you share the branch you began working on this? @bailaC might be interested in picking this up where you left off |
Nice! It is under the coveralls branch. From memory some flags need to be set in cmakelists files, a debug build needs to be performed (possibly with gcov enabled), and then the results need to be uploaded to coveralls. There is a tool that may be of use for uploading the results. Adding the badge afterward is fairly simple. |
Thanks for these notes! |
Open PR We quickly were able to demonstrate that coverage generation using We currently use it in https://github.com/PilzDE/pilz_industrial_motion/tree/kinetic-devel/pilz_trajectory_generation See PR Here the complete report: |
The FCL project has this cool badge that indicates what percent of the project has unit tests:
You can also set a minimum required coverage percent so that new pull requests require unit tests be written for significant pieces of new code. Turning on this feature is a future topic
We would like to add coveralls support in MoveIt! - it does not look too complicated. The discussion and an example on how to do this can be found here
The text was updated successfully, but these errors were encountered: