2

The boost test library supports various logging options, for example: --log_level=all or log_level=test_suite.

And the ctest test driver program has the option --output-on-failure which nicely outputs the messages from boost test.

Is it possible to enable the above output for passed tests too?

2 Answers2

1

It will give a little more than what you're after, but you can add the --verbose flag to ctest and it will show the output of all tests whether they pass or fail.

Craig Scott
  • 9,238
  • 5
  • 56
  • 85
1

Although its an old quetion, but could help to answer it.

yes its possible to putput both failed and passed test with -O <file>, --output-log <file>

-O <file>, --output-log <file>

Output to log file. This option tells CTest to write all its output to a log file.

https://cmake.org/cmake/help/latest/manual/ctest.1.html

Mujtaba Aldebes
  • 101
  • 1
  • 7