I have a Boost.Test based testsuite, where usually a number of tests is combined into one binary.
If I run them separately from CTest, I get an XML file with one entry per binary, which is not detailed enough in the CI output. There is a nice script that has CTest interrogate the test binaries and run the tests separately, which gives good results but also increases test time heavily.
Is there a "mixed mode" approach where I can tell CTest to run multiple tests that exist in the same binary together, and only run subsets when the combined test reports a failure?
For example, the output generated from CTest has nine entries, one for each binary registered with add_test()
. Each binary runs several tests, and the only way to get CTest to report them separately is to instruct it to invoke the binary once for each subtest, which consumes a lot of time.