CTest: Add `--output-on-success` for buffered output in parallel tests
Currently, the only way to see output from all tests is running ctest -V
, which forwards the test output unbuffered. This does not play nice with parallel ctest
runs, as the different test outputs are interleaved. To make it easier to get output from all tests, not just the failing ones, I want to suggest a new flag like --output-on-success
(or --output
or --output-always
), which prints the full buffered output from a successful test after it finished.
I am also happy to provide a MR for this, once it's clear whether this is a suitable addition and what its scope should be.