mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-03 05:45:39 +02:00
Normalize C++ namespace in JUnit's reporter classname field
Closes #2468
This commit is contained in:
@@ -553,6 +553,17 @@ set_tests_properties("Colours::ColourModeCanBeExplicitlySetToAnsi"
|
||||
PASS_REGULAR_EXPRESSION "\\[1\;32mAll tests passed"
|
||||
)
|
||||
|
||||
add_test(NAME "Reporters::JUnit::NamespacesAreNormalized"
|
||||
COMMAND
|
||||
$<TARGET_FILE:SelfTest>
|
||||
--reporter junit
|
||||
"A TEST_CASE_METHOD testing junit classname normalization"
|
||||
)
|
||||
set_tests_properties("Reporters::JUnit::NamespacesAreNormalized"
|
||||
PROPERTIES
|
||||
PASS_REGULAR_EXPRESSION "testcase classname=\"SelfTest(\.exe)?\\.A\\.B\\.TestClass\""
|
||||
)
|
||||
|
||||
if (CATCH_ENABLE_CONFIGURE_TESTS)
|
||||
foreach(testName "DefaultReporter" "Disable" "DisableStringification"
|
||||
"ExperimentalRedirect")
|
||||
|
Reference in New Issue
Block a user