-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
ExtrasTouches utility scripts outside of Catch2 proper, e.g. CMake integration.Touches utility scripts outside of Catch2 proper, e.g. CMake integration.
Description
Describe the bug
The improved regex breaks test-fixtures (like TEST_CASE_METHOD(fixture, "testname")
) detection of the ParseAndAddCatchTest helper script
Expected behavior
TEST_CASE_METHOD(fixture, "testcase")
tests should be part of the detected test cases
Reproduction steps
add a testcase with a fixture like
TEST_CASE_METHOD(fixture, "testname")
{
REQUIRE(true);
}
See that the current regex doesn't match the test case with fixture
https://regex101.com/r/j6Y4n9/1
Platform information:
- Catch version: 2.13.3 (introduced in 2.13.2 with regex change for
TEMPLATE_TEST_CASE()
and not fixed by my new regex in 2.13.3)
Additional context
TEMPLATE_TEST_CASE()
introduction 3e8800b- my attempted v2.13.3 fix for the regex: Fix CMake regex in ParseAndAddCatchTest helper #2056
- Test fixtures documentation for Catch 2.x https://github.com/catchorg/Catch2/blob/v2.x/docs/test-fixtures.md#top
Metadata
Metadata
Assignees
Labels
ExtrasTouches utility scripts outside of Catch2 proper, e.g. CMake integration.Touches utility scripts outside of Catch2 proper, e.g. CMake integration.