-
Notifications
You must be signed in to change notification settings - Fork 52
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
Run 'colcon test-result' to print test failures #794
Run 'colcon test-result' to print test failures #794
Conversation
ee60dd0
to
dc06b9f
Compare
Codecov ReportBase: 48.73% // Head: 47.87% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #794 +/- ##
==========================================
- Coverage 48.73% 47.87% -0.87%
==========================================
Files 2 2
Lines 277 282 +5
Branches 76 76
==========================================
Hits 135 135
- Misses 142 147 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great - that's a nice usability improvement, I'm always searching through the long long logs for what failed.
dc06b9f
to
a9a4d52
Compare
ci.ros2.org doesn't use Example
Otherwise, with Example
Then you do still have to go look at the "raw" test output. cc @ijnek, since you might have an opinion on this too. |
Yeah, I think it's good like that! As long as it's just printing failed tests and not all tests outputs |
Yep, first |
Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
a9a4d52
to
04119b0
Compare
I'm late, but the changes are good. Thanks @christophebedard ! |
Closes #784
action-ros-ci
currently runscolcon test ...
with--return-code-on-test-failure
, which makes the CI job fail right after that command if any tests fail. Users need to look through the test output to find the test failures, which is a bit annoying.Instead, remove the
--return-code-on-test-failure
option from thecolcon test ...
command, and usecolcon test-result
instead. Run it first with the--all
option so that all test results are printed, including the tests that passed. This allows quickly checking what tests ran. Sincecolcon test-result
returns a non-zero error code if any tests failed, ignore the return code here. Then, runcolcon test-result
with the--verbose
option (only) to show only test results of failed tests along with part of their output. This time, the return code isn't ignored, which makes the CI job fail if there are any failures. This is much closer to the way CI jobs work on ci.ros2.org.This shouldn't affect the actual outcome of CI jobs; it should only affect the output.
Signed-off-by: Christophe Bedard christophe.bedard@apex.ai