Robotics StackExchange | Archived questions

How do I clean colcon test results?

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?

Asked by DanRose on 2019-07-29 15:44:10 UTC

Comments

Answers

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.)

Asked by Dirk Thomas on 2019-07-30 10:34:30 UTC

Comments

colcon test-result --delete-yes

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

Asked by fredBeauj on 2022-12-06 04:00:13 UTC

Comments