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
Qt Code:
QTEST_MAIN(TestCaseClassname) #include "testcasefilename.moc"To copy to clipboard, switch view to plain text mode
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?
Bookmarks