FixtureRecorder
constructor(directory: Path, gate: RecordingGate.Enabled, redaction: Redaction = Redaction(), warnAboveBytes: Int = DEFAULT_WARN_ABOVE_BYTES)(source)
Parameters
directory
the root directory of the fixture files, for example the consumer's src/test/resources/fixtures.
gate
the gate; obtainable only from RecordingGate.evaluate.
redaction
what to hide; the default redacts by token with no secrets.
warnAboveBytes
the body size above which a WARN suggests a trimmed, hand-edited fixture; DEFAULT_WARN_ABOVE_BYTES by default. The file is still written.