Catch2
Catch2 copied to clipboard
Make className accessible to CatchAddTests.cmake integration
Description
In the current state, neither the --list-tests nor the --list-test-names-only provide access to TestCaseInfo::className.
This is in contrast to the standalone reporters which partially do provide fully qualified class names as context information.
As a result, that piece of information is also missing for CatchAddTests.cmake and all tests are only available as a flat list.
This used to be a feature with ParseAndAddCatchTests.cmake and the PARSE_CATCH_TESTS_ADD_FIXTURE_IN_TEST_NAME option.
Since this is no longer based on direct parsing, --list-tests would be the best candidate to extend the highest verbosity level by the className attribute.
Additional context
While this isn't required for CTest to select a test, it would be preferable to have the test name stronger qualified for reporting in CI use cases.
Sure makes sense.