Slight improvement for reporter test

This commit is contained in:
Martin Hořeňovský 2022-05-10 19:16:50 +02:00
parent a733b58cd2
commit d60fbe49be
No known key found for this signature in database
GPG key ID: DE48307B8B0D381A
9 changed files with 17 additions and 15 deletions

View file

@ -66,7 +66,9 @@ TEST_CASE( "The default listing implementation write to provided stream",
Catch::defaultListReporters(sstream.stream(), reporters, Catch::Verbosity::Normal);
auto listingString = sstream.str();
REQUIRE_THAT(listingString, ContainsSubstring("fake reporter"s));
REQUIRE_THAT( listingString,
ContainsSubstring( "fake reporter"s ) &&
ContainsSubstring( "fake description"s ) );
}
SECTION( "Listing tests" ) {
Catch::TestCaseInfo fakeInfo{