Ask Your Question

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

1 Answer

Sort by ยป oldest newest most voted

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 1,014 times

Last updated: Jul 30 '19