ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

How do I clean colcon test results?

asked 2019-07-29 15:44:10 -0500

DanRose gravatar image

I have multiple packages I'm developing on, and I'd like to see test results for one package, even if another has previously failed tests. How do I do this?

I have run colcon test --packages-select package_a previously, so the package a test results are in my build tree. I then want to run tests on package b, so I run colcon test --packages-select package_b; colcon test-result --verbose. But this shows the test results from both packages. Is there a way to view only the test results from the newly-tested package? Is there some sort of way to clean out all test results without outright deleting my build folder?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2019-07-30 10:34:30 -0500

Dirk Thomas gravatar image

You can limit test-result to the package you are interested in: colcon test-result --test-result-base build/<pkgname>

You could also enumerate all found test result files with colcon test-result --result-files-only and use some shell commands to delete them. (Currently there is no command line option to do so for you.)

edit flag offensive delete link more
0

answered 2022-12-06 03:00:13 -0500

fredBeauj gravatar image

colcon test-result --delete-yes

Found it from the output of colcon test-result --help

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-07-29 15:44:10 -0500

Seen: 1,712 times

Last updated: Dec 06 '22