Boost logo

Boost :

Subject: Re: [boost] Boost_Test: Initialize fixture only once
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2010-03-02 02:01:48


Dmytro Ovdiienko wrote:

Please do not top post.

> I cannot create first test_case as startup because boost performs test_cases
> randomly.

Not exactly. Within the same test file the test cases are executed in
the order you see them in the file (unless you intentionally randomize
the order). If you have test cases in multiple test files - yes in this
case order is not defined.

> Also I cannot use GLOBAL_FIXTURE because I have several test_suites and they
> requires different Fixtures.

You can always split the test module into several running single test suite.

Gennadiy


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