Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.32 KB

FrontLoadedReporter.md

File metadata and controls

34 lines (24 loc) · 1.32 KB

Front Loaded Reporters

Contents

What and Why

Front loaded reporters allow you to block all normal reporting behaviour depending on the environment. This is useful in situations like running on a CI Machine, where you wouldn't want a reporter to open.

The FrontLoadedReporter is the mechanism to do that. FrontLoadedReporters implement EnvironmentAwareReporter, which means they are aware of the environment. If they are in the correct environment, they override all other reporters, otherwise they pass through.

The DefaultFrontLoadedReporter

Currently, the DefaultFrontLoadedReporter that comes with ApprovalTests is set up to handle:

PitReporter.INSTANCE, EnvironmentVariableReporter.INSTANCE

snippet source | anchor

Links