catchorg / catchorg/Catch2

Make className accessible to CatchAddTests.cmake integration

Open
#2,469 1 comment 0 reactions 0 assignees View on GitHub
Tweak request
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.