6

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.

edA-qa mort-ora-y
  • 30,295
  • 39
  • 137
  • 267

2 Answers2

8

Use the option: --report_level=detailed

It will report all your tailing test cases and suites.

Olivia Stork
  • 4,660
  • 5
  • 27
  • 40
Gennadiy Rozental
  • 1,905
  • 2
  • 13
  • 17
  • 1
    Only slightly better. This report is still many pages long and makes it hard to find the failures -- it also doesn't show the full suite/test name clearly.. I was hoping for a report that makes failures easy to spot. – edA-qa mort-ora-y May 17 '12 at 06:54
  • You are free to implement your own report formatter. An interface should be easy to follow. Once you have that you can install it in setup step and enjoy an output of your choice. – Gennadiy Rozental May 17 '12 at 09:52
  • The XML output option may make it even easier to parse/identify the fail records. – timday Nov 27 '12 at 21:34
1

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
camp0
  • 372
  • 1
  • 5