Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
None
-
None
-
615b37193bf2577efa609df364865ff6b7fe43a9 (qt-creator/qt-creator/master)
Description
We have a large(ish) project and lots of tests. We noticed that creating a separate executable for each test class increases linking time quite a lot, so we created multiple (but less than previously) test executables that each run multiple (related) tests calling QTest::qExec multiple times from the same main() function.
BUT... I noticed, that running all tests from Qt Creator doesn't run these tests, but only the single tests declared with QTEST_APPLESS_MAIN / QTEST_GUILESS_MAIN / QTEST_MAIN.
See a detailed description here: https://gist.github.com/oranja/c032d7f77becca18137d49251e791593
So, it would be nice, if:
- additional texts that this plugin looks for to detect test classes, could be configured in the plugin's options
OR - instead of looking for test classes, look for test projects (search keywords "testcase" / "testlib" in the .pro file and included .pri files?). Then run the detected executables' main() function and parse the output.
- any other solution that would allow us running multiple tests from a single executable and still be compatible with this plugin.
Attachments
Issue Links
- is duplicated by
-
QTCREATORBUG-19314 Tests panel not showing all unit tests
-
- Closed
-
-
QTCREATORBUG-24026 All Qt Tests are not shown in Tests panel when using single main method.
-
- Closed
-