edA-qa mort-ora-y
edA-qa mort-ora-y

Reputation: 31951

How to print test summary using boost unit test

Is there a way to print a summary of the tests run in boost unit test. In particular, can a listing of the failed tests be made?

I'm having a hard time locating failing tests in the output (especially when the tests have their own output). I already set BOOST_TEST_LOG_LEVEL in order to show enter/exit, but that isn't enough to locate the failing tests.

Upvotes: 6

Views: 2753

Answers (2)

camp0
camp0

Reputation: 392

I like the --report_level=short option

Test module "Main" has passed with:
    796 test cases out of 796 passed
    75790 assertions out of 75790 passed

Upvotes: 1

Gennadiy Rozental
Gennadiy Rozental

Reputation: 1945

Use the option: --report_level=detailed

It will report all your tailing test cases and suites.

Upvotes: 8

Related Questions