diff options
| author | Martin Hořeňovský | 2025-01-03 10:30:47 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2025-01-05 20:02:00 +0100 |
| commit | 7d7b2f89f24cbd277f6eb6912705e5e13c68a3c7 (patch) | |
| tree | de5bfb1374a86468196ac71b48ca74651782d0ab /tests/TestScripts/DiscoverTests/register-tests.cpp | |
| parent | b0d0aa43e6785f01e2dc4708c23fd8903de26c5c (diff) | |
| download | catch3-7d7b2f89f24cbd277f6eb6912705e5e13c68a3c7.tar.gz | |
Support adding test tags as CTest labels in catch_discover_tests
We also bump the minimum CMake version to 3.20 as per #2943
Diffstat (limited to 'tests/TestScripts/DiscoverTests/register-tests.cpp')
| -rw-r--r-- | tests/TestScripts/DiscoverTests/register-tests.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/TestScripts/DiscoverTests/register-tests.cpp b/tests/TestScripts/DiscoverTests/register-tests.cpp index aa603df1..be533ab6 100644 --- a/tests/TestScripts/DiscoverTests/register-tests.cpp +++ b/tests/TestScripts/DiscoverTests/register-tests.cpp @@ -14,3 +14,10 @@ TEST_CASE( "Let's have a test case with a long name. Longer. No, even longer. " "Really looooooooooooong. Even longer than that. Multiple lines " "worth of test name. Yep, like this." ) {} TEST_CASE( "And now a test case with weird tags.", "[tl;dr][tl;dw][foo,bar]" ) {} +// Also check that we handle tests on class, which have name in output as 'class-name', not 'name'. +class TestCaseFixture { +public: + int m_a; +}; + +TEST_CASE_METHOD(TestCaseFixture, "A test case as method", "[tagstagstags]") {} |