Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest/IntrospectiveTests/CmdLineHelpers.tests.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2022-04-06 15:17:17 +0200
committerMartin Hořeňovský2022-04-06 21:41:45 +0200
commit3c06bcb374aaebf91ad1d63aba655dee66cf7b91 (patch)
tree931a3e709c1d7681887fcc6bfc4a452755806e68 /tests/SelfTest/IntrospectiveTests/CmdLineHelpers.tests.cpp
parenta51fd07bd006101c90662317c98de0ebe9e97312 (diff)
downloadcatch3-3c06bcb374aaebf91ad1d63aba655dee66cf7b91.tar.gz
Fix reporter parser spec to use the right key for colour-mode
Diffstat (limited to 'tests/SelfTest/IntrospectiveTests/CmdLineHelpers.tests.cpp')
-rw-r--r--tests/SelfTest/IntrospectiveTests/CmdLineHelpers.tests.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/SelfTest/IntrospectiveTests/CmdLineHelpers.tests.cpp b/tests/SelfTest/IntrospectiveTests/CmdLineHelpers.tests.cpp
index 9045ad2a..b8a54390 100644
--- a/tests/SelfTest/IntrospectiveTests/CmdLineHelpers.tests.cpp
+++ b/tests/SelfTest/IntrospectiveTests/CmdLineHelpers.tests.cpp
@@ -81,7 +81,7 @@ TEST_CASE("Parsing reporter specs", "[cli][reporter-spec][approvals]") {
{},
{ { "Xk1"s, "v1"s }, { "Xk2"s, "=v2"s } } ) );
REQUIRE( parseReporterSpec(
- "Foo:bar:reporter::colour=ansi::Xk 1=v 1::Xk2=v:3" ) ==
+ "Foo:bar:reporter::colour-mode=ansi::Xk 1=v 1::Xk2=v:3" ) ==
ReporterSpec( "Foo:bar:reporter",
{},
Catch::ColourMode::ANSI,
@@ -93,9 +93,9 @@ TEST_CASE("Parsing reporter specs", "[cli][reporter-spec][approvals]") {
// Unknown Catch2 arg (should be "out")
REQUIRE_FALSE( parseReporterSpec( "reporter::output=filename" ) );
// Wrong colour spec
- REQUIRE_FALSE( parseReporterSpec( "reporter::colour=custom" ) );
+ REQUIRE_FALSE( parseReporterSpec( "reporter::colour-mode=custom" ) );
// Duplicated colour spec
- REQUIRE_FALSE( parseReporterSpec( "reporter::colour=ansi::colour=ansi" ) );
+ REQUIRE_FALSE( parseReporterSpec( "reporter::colour-mode=ansi::colour-mode=ansi" ) );
// Duplicated out arg
REQUIRE_FALSE( parseReporterSpec( "reporter::out=f.txt::out=z.txt" ) );
// Duplicated custom arg