views:

23

answers:

1

I have started using BOOST recently for unit testing. Just need one clarification on global fixtures.

When it got executed? ... for each test module, or each test suite or each test case? Will it be the first before any thing else got executed?

I am using the BOOST_AUTO_TEST_CASE for writing my tests.

A: 

global fixtures are executed once per module since they are defined at file scope. Typically I use them to initialize logging or a database connection should my unit tests need them.

Sam Miller