$ colcon build
$ colcon test
$ colcon test-result --test-result-base ./_ws/build
_ws/build/hello_world/Testing/20211120-1117/Test.xml: 5 tests, 0 errors, 1 failure, 0 skipped
_ws/build/hello_world/test_resultshello_world/test_hello.gtest.xml: 1 test, 0 errors, 1 failure, 0 skipped
Summary: 19 tests, 0 errors, 2 failures, 0 skipped
My workspace only has 5 tests and only 1 of them is failing.
$ colcon test-result --test-result-base ./_ws/build --all
_ws/build/hello_world/Testing/20211120-1117/Test.xml: 5 tests, 0 errors, 1 failure, 0 skipped
_ws/build/hello_world/test_results/hello_world/cppcheck.xunit.xml: 4 tests, 0 errors, 0 failures, 0 skipped
_ws/build/hello_world/test_results/hello_world/cpplint.xunit.xml: 4 tests, 0 errors, 0 failures, 0 skipped
_ws/build/hello_world/test_results/hello_world/lint_cmake.xunit.xml: 1 test, 0 errors, 0 failures, 0 skipped
_ws/build/hello_world/test_results/hello_world/test_hello.gtest.xml: 1 test, 0 errors, 1 failure, 0 skipped
_ws/build/hello_world/test_results/hello_world/uncrustify.xunit.xml: 4 tests, 0 errors, 0 failures, 0 skipped
Summary: 19 tests, 0 errors, 2 failures, 0 skipped
$ cat _ws/log/latest_test/hello_world/stdout.log
.....
The following tests passed:
cppcheck
uncrustify
cpplint
lint_cmake
80% tests passed, 1 tests failed out of 5
Label Time Summary:
cppcheck = 0.50 sec*proc (1 test)
cpplint = 0.46 sec*proc (1 test)
gtest = 0.23 sec*proc (1 test)
lint_cmake = 0.42 sec*proc (1 test)
linter = 1.80 sec*proc (4 tests)
uncrustify = 0.42 sec*proc (1 test)
Total Test time (real) = 2.04 sec
The following tests FAILED:
5 - test_hello (Failed)