CTest should give hints about inspecting test failures
Consider this output of
Changes to be committed: (use "git restore --staged <file>..." to unstage) new file: LICENSE.md Untracked files: (use "git add <file>..." to include in what will be committed) README.md
It gives you a hints for doing two operations you may want to do next. Likewise when I am in a rebase and there's a conflict, it suggests I might want to
git rebase --abort.
Git is full of these helpful clues, and most of the time they spare a user from having to refer to the manual. Even for experienced users they reduce the mental concentration required to switch into "git mode" so they can stay focused on their development work.
Today I was building an open source project and I ran
cmake --build . --target test and was met with this:
83% tests passed, 2 tests failed out of 12 Total Test time (real) = 3.93 sec The following tests FAILED: 3 - C::client_server (Failed) 5 - CPP::client_server (Failed) Errors while running CTest
From here, I don't know how to inspect the failure logs. I don't know where the tests are defined. Since I ran through the
cmake command above (effectively
make test) I don't know the command to run tests again with additional options like
It would be great if CTest followed Git's example and provided some suggestions here. It might simply be enough to say something like:
Output from these tests are in: Testing/Temporary/LastTest.log Use "ctest . --rerun-failed --output-on-failure" to re-run verbosely.