Add more unit tests

* Call order of listeners/reporters in multireporter
* Adding listeners/reporters properly updates reporter preferences
This commit is contained in:
Martin Hořeňovský committed 2022-01-01 14:10:52 +01:00
1 parent ccd67b293d
commit 8baf9c05a3
19 files changed
+836 -19

No files matched your search

@@ -30,11 +30,8 @@ namespace Catch {
public:
ListeningReporter( IConfig const* config ):
IStreamingReporter( config ) {
// We will assume that listeners will always want all assertions
m_preferences.shouldReportAllAssertions = true;
}
IStreamingReporter( config )
{}
void addListener( IStreamingReporterPtr&& listener );
void addReporter( IStreamingReporterPtr&& reporter );