mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-16 18:52:25 +01:00
fixup! Report generator states for failed assertions
This commit is contained in:
parent
4c0a291770
commit
48a5431466
@ -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>
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user