Mookie
13th December 2015, 22:47
This question crosses the boundary between qmake and code.
I'm having some trouble getting my head around the correct use of "CONFIG += testcase".
All the examples show to make a single "Test Case" object in a source file and then add the
QTEST_MAIN(TestCaseClassname)
#include "testcasefilename.moc"
This doesn't allow for multiple test cases in one executable though, since it creates main functions.
Isn't it possible to write a "Test Suite", defined as a collection of test cases, that runs all the cases in single executable?
If so, doesn't "CONFIG += testcase" do this somehow so it can trigger with "make check"?
Is there a decent example somewhere?
I'm having some trouble getting my head around the correct use of "CONFIG += testcase".
All the examples show to make a single "Test Case" object in a source file and then add the
QTEST_MAIN(TestCaseClassname)
#include "testcasefilename.moc"
This doesn't allow for multiple test cases in one executable though, since it creates main functions.
Isn't it possible to write a "Test Suite", defined as a collection of test cases, that runs all the cases in single executable?
If so, doesn't "CONFIG += testcase" do this somehow so it can trigger with "make check"?
Is there a decent example somewhere?