Add fatalErrorEncountered method to Reporter/Listener interface

An empty default implementation is provided to keep backward compatibility.
Called when signal or Structured Exception is encountered.

Related to #1005
This commit is contained in:
Martin Hořeňovský
2017-09-14 19:57:59 +02:00
parent eaf850cd0c
commit 4e85267203
3 changed files with 8 additions and 1 deletions

View File

@@ -16,6 +16,7 @@
#include "catch_assertionresult.h"
#include "catch_message.h"
#include "catch_option.hpp"
#include "catch_stringref.h"
#include <string>
@@ -201,6 +202,9 @@ namespace Catch {
virtual void skipTest( TestCaseInfo const& testInfo ) = 0;
// Default empty implementation provided
virtual void fatalErrorEncountered( StringRef name );
virtual bool isMulti() const;
};
using IStreamingReporterPtr = std::unique_ptr<IStreamingReporter>;