
Gennadiy Rozental wrote:
"Mateusz Loskot"
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