Boost logo

Boost :

Subject: Re: [boost] Boost_Test: Initialize fixture only once
From: Rhys Ulerich (rhys.ulerich_at_[hidden])
Date: 2010-03-01 14:49:34


> I have set of test_suites. Every test_suite consists of a bunch of
> test_cases. Every test case should be initialized before execution.
>
> So, I created Fixture for every test_suite. The problem is Fixture
> initialization takes a lot of time and boost creates it for every test_case
> (not for every test_suite)

Are you using BOOST_FIXTURE_TEST_SUITE per [1]? That should run once
per test suite.

- Rhys

[1] http://www.boost.org/doc/libs/1_42_0/libs/test/doc/html/utf/user-guide/fixture/test-suite-shared.html


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk