Boost logo

Boost Users :

From: Mateusz Łoskot (mateusz_at_[hidden])
Date: 2006-03-06 13:15:21


Gennadiy Rozental wrote:
> "Mateusz Loskot" <mateusz_at_[hidden]> wrote:
>
>
>>I know how to create Test Case and how to combine those cases into Test
>>Suite. I also read introductory docs from "Tutorials and usage
>>recommendations" part as well as I walked through unit_test_examples but
>>I'm still a bit confused about the bigger picture.
>>
>>As far as I understand, every Test Case or Test Suite of cases is to be
>>compiled to separate executable. Is this correct?
>
>
> No. You could have any number of those in a single test module.

And that's explains everything.
One test module (a .cpp file) will produce one executable.
But in one test module many test cases/suites can be included.
Clear.

> You sould
> use your own judgement to decide when to split your test module into
> separtate executable.
> Usually reasons more or less clear:
> * Different units/subsytem needs to have separate executable
> * If some feature may casue compilation error - move it into separate
> module.
> * If number of test module execution time exceed some limit (your
> choice) - split it.

Great tips! Thanks a lot!

>>will be a separate program. Right?
>
>
> No. You could combine several test files into single test module. Don't
> forget - BOOST_TEST_MAIN/BOOST_TEST_MODULE should be defined into single one
> only.

Yes, that explains me all:

"combine several test files into single test module."

Thanks

-- 
Mateusz Łoskot
http://mateusz.loskot.net

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