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

Add coverage analysis for moveit_core #1133

Merged

Conversation

agutenkunst
Copy link
Contributor

Originated from: #1

Provides a CMake target to generate a coverage analysis of moveit_core.

Usage: catkin_make -DENABLE_COVERAGE_TESTING=ON moveit_core_coverage

Copy link
Contributor

@rhaschke rhaschke left a comment

Choose a reason for hiding this comment

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

Thanks for this initial contribution. What is still missing from my point of view: How does this integrate with github? We want to include coverage badges in the README.md table.
Where are the results stored? And how can we access them for badges?
I think, the reference mentioned in #1 used a different approach.

@@ -76,4 +76,5 @@
<test_depend>orocos_kdl</test_depend>
<test_depend>rosunit</test_depend>
<test_depend>tf_conversions</test_depend>
<test_depend>code_coverage</test_depend>
Copy link
Contributor

Choose a reason for hiding this comment

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

Coverage testing is not enabled for testing by default, is it?
If so, we can drop this dependency.

@agutenkunst
Copy link
Contributor Author

For context: We are currently at the world moveit day

Talked to @v4hn we agreed that this may not be exactly what was hoped for and misses on the nice to have badges. However maybe even for a short time this would enable to generation of some kind of coverage until some coveralls is made.

Results are stored locally after generation, really not perfect but better than nothing.

Copy link
Contributor

@v4hn v4hn left a comment

Choose a reason for hiding this comment

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

Yes, this probably does not easily allow for coverall badges, but it allows to generate it for core easily (for now).

Looking at the generated coverage, we should probably focus on increasing numbers a bit before adding the badges to the website...

@rhaschke your concrete feedback is addressed.

@davetcoleman
Copy link
Member

agreed on reducing public eye of our shameful test coverage, but can you point us to a webpage with our current results?

@mikeferguson
Copy link
Contributor

@davetcoleman the coverage report ends up locally in the workspace (it looks like this is using my code_coverage package -- which is still somewhat new). I'd be happy to accept changes to code_coverage if someone comes up with a good way to get badges/results out easily.

@davetcoleman
Copy link
Member

Could not find a package configuration file provided by "code_coverage" with any of the following names:

Need to add to package.xml

@rhaschke
Copy link
Contributor

Could not find a package configuration file provided by "code_coverage" with any of the following names:

Need to add to package.xml

I explicitly suggested not to depend on this by default: #1133 (comment). Having this in package.xml only ensures that rosdep will install it. It's not needed for the normal build or test process. I suggest to install this package by default in MoveIt's docker containers.

@davetcoleman
Copy link
Member

Ok, if we're not going to add it to package.xml please add a new short section at the bottom of this tutorial explaining how to use this experimental feature (including what to install first)

https://ros-planning.github.io/moveit_tutorials/doc/tests/tests_tutorial.html

@davetcoleman
Copy link
Member

Results: 51.2 % of our functions have tests in moveit_core

image

Copy link
Member

@davetcoleman davetcoleman left a comment

Choose a reason for hiding this comment

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

Please document how to use this in tutorials before merging.

@agutenkunst
Copy link
Contributor Author

@davetcoleman
Copy link
Member

Yes

@davetcoleman
Copy link
Member

ping re:tutorial :-)

otherwise this feature will likely never be found again as its pretty esoteric

@jschleicher
Copy link
Contributor

@davetcoleman: You merged the tutorials-PR, what about the feature itself?
Thanks!

@davetcoleman
Copy link
Member

Ooops indeed! Humans are faulty like that, hence my recommendation here: #1284

;-)

@davetcoleman davetcoleman changed the base branch from kinetic-devel to melodic-devel January 9, 2019 01:47
@davetcoleman davetcoleman changed the base branch from melodic-devel to kinetic-devel January 9, 2019 01:48
@davetcoleman davetcoleman merged commit 60cbd17 into moveit:kinetic-devel Jan 9, 2019
@davetcoleman
Copy link
Member

cherry picked to melodic

@agutenkunst agutenkunst deleted the feature/code_coverage branch January 10, 2019 07:37
pull bot pushed a commit to shadow-robot/moveit that referenced this pull request Sep 3, 2020
JafarAbdi pushed a commit to JafarAbdi/moveit that referenced this pull request Mar 24, 2022
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.

6 participants