Hi,
I've got small but mature project confgured by CMake. Plenty of UT test
However I don't know WHAT my cmake is missing as AutoTest isn't detecting any tests. I've stumble on this where attached cmake project opened in QtCreator has been detected by AutoTest.
I've analyzed both configuration. And I couldn't find any crucial differences. Beside fact that given example project use test prepared in cpp.
I've even tried to analyze AT source code to find how it detects which file is which. And there I found only that AT doesn't care about project:
In qtest/qttestparser.cpp I found some logic around Cpp code model which should detect if this file is ie. including QtTest.
Perhaps here is the problem. First I split test to h and cpp file. Secondly - QTest::qExec is executed by TestRunner.
Any help? What are conditions to decide - this is test file and this is how to use it.
Bookmarks