I would like to contribute a Qt Test discovery function similar to the one introduced for Google Test in 3.10 (https://blog.kitware.com/dynamic-google-test-discovery-in-cmake-3-10/).
I have already implemented a minimum viable product. The integration in the CMake repository is straight-forward, but I am unsure about the test strategy.
The gtest_discover_tests() function is called from multiple CMake scripts located in “Tests/RunCMake/GoogleTest/”.
- How do I run the tests in Tests/RunCMake/GoogleTest/ locally?
- Is this kind of test mandatory for a new feature?
- It looks like the gtest_discover_tests() tests in Tests/RunCMake/GoogleTest/ are calling the function, but not checking if it actually does its job. Am I missing something?