2

is there a way to detect which tests are inside a boost unit-test binary? The goal would be to present some kind of user interface to select the tests that need to be run. I checked the exports of the dll created with

#define BOOST_TEST_DYN_LINK

but I didn't find anything self-explaining. And the documentation only mentions that you can create sophisticated test runners - but not how.

regards Tobias

Tobias Langner
  • 10,634
  • 6
  • 46
  • 76
  • I'm not sure about the value of presenting a menu to the user, but +1 nonetheless. – John Dibling Jul 01 '13 at 15:47
  • 1
    have you ever seen nunit test-runners or test-integrations into an IDE? That's what you need it for. – Tobias Langner Jul 01 '13 at 15:58
  • I have not, but I guess that makes sense. – John Dibling Jul 01 '13 at 15:59
  • check for example this picture - it illustrates the use case quite nicely: http://bbltest.sourceforge.net/wp-content/uploads/2011/03/Screen-shot-2011-03-03-at-8.56.10-AM.png You can run your tests individually if required and you easily see what failed without switching from your IDE - perfect for TDD. – Tobias Langner Jul 01 '13 at 18:16

1 Answers1

0

This answer might be helpful: getting all boost test suites / test cases. It suggests using a global fixture, which provides a hook extend the user interface.

Community
  • 1
  • 1
ToniBig
  • 836
  • 6
  • 21