Skip to main content
Long-running pipeline stages need to communicate progress without coupling to a specific output target. The PipelineReporter protocol lets you swap between rich console output, structured logging, or silent test mocks.

Overview

ReporterInterface

Abstract base class defining the reporting contract:

PipelineReporter

Console-based implementation for production use:

Usage

Methods

MockReporter

Testing implementation that records all messages:

Testing Usage

Reset Between Tests

Integration with Pipeline

The Pipeline receives its reporter through PipelineConfig, not as a direct constructor parameter:

Custom Reporters

File-Based Reporter

JSON Reporter

See Also