Add quiet verbosity variant to the default listener and tag listing

This commit is contained in:
Martin Hořeňovský
2026-02-16 22:52:39 +01:00
parent 29c9844f68
commit a404f37cec
5 changed files with 32 additions and 12 deletions
@@ -54,7 +54,7 @@ TEST_CASE( "The default listing implementation write to provided stream",
SECTION( "Listing tags" ) {
std::vector<Catch::TagInfo> tags(1);
tags[0].add("fakeTag"_catch_sr);
Catch::defaultListTags(sstream.stream(), tags, false);
Catch::defaultListTags(sstream.stream(), tags, false, Catch::Verbosity::Normal);
auto listingString = sstream.str();
REQUIRE_THAT(listingString, ContainsSubstring("[fakeTag]"s));
@@ -87,7 +87,7 @@ TEST_CASE( "The default listing implementation write to provided stream",
std::vector<Catch::ListenerDescription> listeners(
{ { "fakeListener"_catch_sr, "fake description" } } );
Catch::defaultListListeners( sstream.stream(), listeners );
Catch::defaultListListeners( sstream.stream(), listeners, Catch::Verbosity::Normal );
auto listingString = sstream.str();
REQUIRE_THAT( listingString,
ContainsSubstring( "fakeListener"s ) &&