Boost logo

Boost Users :

Subject: Re: [Boost-users] [Test] can one run a specific test first?
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2011-05-31 00:02:56


Thorsten Ottosen <thorsten.ottosen <at> dezide.com> writes:

> > Put all the other test cases in test suite.
>
> Well, not that elegant

Why? it exactly reflects the logic you were after.

> > If it does not help add dependency
> > of this test suite on the test case.
> >
>
> Ok, thanks. Maybe would be possible to automate this slightly
> by some minor changes to
>
> BOOST_AUTO_TEST_SUITE( XXX )
>
> ? I'm thinking either
>
> A. order (run) the test suites by name. This would make it easy for me
> to change the order without relocating any tests.

This will lead to more surprises and is not backward compatible.
 
> B. Add a new variant of test suites, e.g.
>
> BOOST_AUTO_FIRST_TEST_SUITE( XXX )
>
> which seems less general than A.

This is indeed not very elegant. I'd rather not multiply entities, if there is a
solution expressed in existing terms.

Gennadiy


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net