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ý
2021-12-19 15:16:56 +01:00
parent ccd67b293d
commit 8baf9c05a3
19 changed files with 836 additions and 19 deletions

View File

@@ -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 );