...
| Excerpt | ||
|---|---|---|
| ||
When you run the tests via CMake (which actually runs ctest), you are only told if it passed or failed. After a failure you want to re-run the test and see all of what the test was doing. |
How can I get verbose output when running tests?
Step-by-step guide
When you run the tests via CMake (which actually runs ctest), you are only told if it passed or failed. After a failure you want to re-run the test and see all of what the test was doing.
So for example you run the tests first:
...
| Code Block |
|---|
ctest --output-on-failure |
Now anything which was output by a failing test will be printed. This option can also be enabled by setting the environment variable CTEST_OUTPUT_ON_FAILURE
Related articles
| Content by Label | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...