fixup! Report generator states for failed assertions

This commit is contained in:
Marcel Gotsch 2022-08-27 21:59:25 +02:00
parent 4c0a291770
commit 48a5431466
5 changed files with 2 additions and 6 deletions

View File

@ -8,7 +8,6 @@
#ifndef CATCH_GENERATORS_HPP_INCLUDED #ifndef CATCH_GENERATORS_HPP_INCLUDED
#define CATCH_GENERATORS_HPP_INCLUDED #define CATCH_GENERATORS_HPP_INCLUDED
#include "catch2/interfaces/catch_interfaces_capture.hpp"
#include <catch2/catch_tostring.hpp> #include <catch2/catch_tostring.hpp>
#include <catch2/interfaces/catch_interfaces_generatortracker.hpp> #include <catch2/interfaces/catch_interfaces_generatortracker.hpp>
#include <catch2/internal/catch_generator_info.hpp> #include <catch2/internal/catch_generator_info.hpp>

View File

@ -5,7 +5,6 @@
// https://www.boost.org/LICENSE_1_0.txt) // https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0 // SPDX-License-Identifier: BSL-1.0
#include "catch2/interfaces/catch_interfaces_capture.hpp"
#include <catch2/interfaces/catch_interfaces_reporter.hpp> #include <catch2/interfaces/catch_interfaces_reporter.hpp>
#include <catch2/interfaces/catch_interfaces_config.hpp> #include <catch2/interfaces/catch_interfaces_config.hpp>
#include <catch2/internal/catch_console_colour.hpp> #include <catch2/internal/catch_console_colour.hpp>

View File

@ -8,7 +8,6 @@
#ifndef CATCH_INTERFACES_REPORTER_HPP_INCLUDED #ifndef CATCH_INTERFACES_REPORTER_HPP_INCLUDED
#define CATCH_INTERFACES_REPORTER_HPP_INCLUDED #define CATCH_INTERFACES_REPORTER_HPP_INCLUDED
#include "catch2/interfaces/catch_interfaces_capture.hpp"
#include <catch2/catch_section_info.hpp> #include <catch2/catch_section_info.hpp>
#include <catch2/catch_totals.hpp> #include <catch2/catch_totals.hpp>
#include <catch2/catch_assertion_result.hpp> #include <catch2/catch_assertion_result.hpp>

View File

@ -8,7 +8,6 @@
#ifndef CATCH_RUN_CONTEXT_HPP_INCLUDED #ifndef CATCH_RUN_CONTEXT_HPP_INCLUDED
#define CATCH_RUN_CONTEXT_HPP_INCLUDED #define CATCH_RUN_CONTEXT_HPP_INCLUDED
#include "catch2/interfaces/catch_interfaces_capture.hpp"
#include <catch2/interfaces/catch_interfaces_reporter.hpp> #include <catch2/interfaces/catch_interfaces_reporter.hpp>
#include <catch2/internal/catch_test_registry.hpp> #include <catch2/internal/catch_test_registry.hpp>
#include <catch2/internal/catch_fatal_condition_handler.hpp> #include <catch2/internal/catch_fatal_condition_handler.hpp>

View File

@ -160,14 +160,14 @@ private:
return; return;
} }
stream << "with " << pluralise(stats.generatorInfos.size(), "generator"_sr) << "\n"; stream << "with " << pluralise(stats.generatorInfos.size(), "generator"_sr) << '\n';
for ( auto const& info : stats.generatorInfos ) { for ( auto const& info : stats.generatorInfos ) {
stream << TextFlow::Column( "line:" ).indent( 2 ) stream << TextFlow::Column( "line:" ).indent( 2 )
<< info.lineInfo.line << ": " << info.lineInfo.line << ": "
<< "GENERATE(" << info.definition << ")\n" << "GENERATE(" << info.definition << ")\n"
<< TextFlow::Column( "value: " ).indent( 2 ) << TextFlow::Column( "value: " ).indent( 2 )
<< colourImpl->guardColour( Colour::GeneratorValue ) << colourImpl->guardColour( Colour::GeneratorValue )
<< info.currentElement << "\n"; << info.currentElement << '\n';
} }
} }
void printMessage() const { void printMessage() const {