catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Changed stdout/ stderr messages to be less misleading
- Commit
fb90d38310d90184e139feacb80901c3190ca415- Author
- Phil Nash ·
- Parents
eb760f689b77
Changes
projects/SelfTest/Baselines/console.std.approved.txt | 4 ++-- projects/SelfTest/Baselines/console.sw.approved.txt | 4 ++-- projects/SelfTest/Baselines/junit.sw.approved.txt | 8 ++++---- projects/SelfTest/MiscTests.cpp | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/projects/SelfTest/Baselines/console.std.approved.txt b/projects/SelfTest/Baselines/console.std.approved.txt index 54d3ee6f..422f0fc2 100644 --- a/projects/SelfTest/Baselines/console.std.approved.txt +++ b/projects/SelfTest/Baselines/console.std.approved.txt @@ -569,8 +569,8 @@ with expansion: with message: Testing if fib[7] (21) is even -Some information -An error +A string sent directly to stdout +A string sent directly to stderr ------------------------------------------------------------------------------- checkedIf, failing ------------------------------------------------------------------------------- diff --git a/projects/SelfTest/Baselines/console.sw.approved.txt b/projects/SelfTest/Baselines/console.sw.approved.txt index e0c15c68..792004c9 100644 --- a/projects/SelfTest/Baselines/console.sw.approved.txt +++ b/projects/SelfTest/Baselines/console.sw.approved.txt @@ -3014,8 +3014,8 @@ with expansion: with message: Testing if fib[7] (21) is even -Some information -An error +A string sent directly to stdout +A string sent directly to stderr ------------------------------------------------------------------------------- Sends stuff to stdout and stderr ------------------------------------------------------------------------------- diff --git a/projects/SelfTest/Baselines/junit.sw.approved.txt b/projects/SelfTest/Baselines/junit.sw.approved.txt index b105e986..5dd37bd7 100644 --- a/projects/SelfTest/Baselines/junit.sw.approved.txt +++ b/projects/SelfTest/Baselines/junit.sw.approved.txt @@ -351,10 +351,10 @@ MiscTests.cpp:<line number> </testcase> <testcase classname="global" name="Sends stuff to stdout and stderr" time="{duration}"> <system-out> -Some information +A string sent directly to stdout </system-out> <system-err> -An error +A string sent directly to stderr </system-err> </testcase> <testcase classname="global" name="null strings" time="{duration}"/> @@ -550,12 +550,12 @@ TrickyTests.cpp:<line number> <system-out> Message from section one Message from section two -Some information +A string sent directly to stdout hello hello </system-out> <system-err> -An error +A string sent directly to stderr </system-err> </testsuite> </testsuites> diff --git a/projects/SelfTest/MiscTests.cpp b/projects/SelfTest/MiscTests.cpp index 33e84bc2..efcd4582 100644 --- a/projects/SelfTest/MiscTests.cpp +++ b/projects/SelfTest/MiscTests.cpp @@ -113,9 +113,9 @@ TEST_CASE( "looped tests", "[.][failing]" ) TEST_CASE( "Sends stuff to stdout and stderr", "" ) { - std::cout << "Some information" << std::endl; + std::cout << "A string sent directly to stdout" << std::endl; - std::cerr << "An error" << std::endl; + std::cerr << "A string sent directly to stderr" << std::endl; } inline const char* makeString( bool makeNull )