mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-03 22:05:39 +02:00
Event listeners no longer take reporter config in constructor
This also required splitting out Listener factory from the reporter factory hierarchy. In return, the listener factories only need to take in `IConfig const*`, which opens up further refactorings down the road in the colour selection and implementation.
This commit is contained in:
@@ -48,7 +48,7 @@ class ValidatingTestListener : public Catch::EventListenerBase {
|
||||
};
|
||||
|
||||
public:
|
||||
ValidatingTestListener(Catch::ReporterConfig const& config) :
|
||||
ValidatingTestListener(Catch::IConfig const* config) :
|
||||
EventListenerBase(config) {
|
||||
m_preferences.shouldReportAllAssertions = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user