| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Skeletest.Internal.Capture
Contents
Synopsis
- captureOutputPlugin :: Plugin
- data FixtureCapturedOutput = FixtureCapturedOutput {}
- newtype CaptureOutputFlag = CaptureOutputFlag Bool
Documentation
data FixtureCapturedOutput Source #
Fixture for inspecting the captured output.
Intended to be used with OverloadedRecordDot:
output <- getFixture @FixtureCapturedOutput -- Read all of stdout/stderr so far stdout <- output.getStdout stderr <- output.getStderr -- Read everything in stdout/stderr since the last read stdout_chunk <- output.readStdout stderr_chunk <- output.readStderr
Constructors
| FixtureCapturedOutput | |
Instances
| Fixture FixtureCapturedOutput Source # | |
Defined in Skeletest.Internal.Capture Methods fixtureScope :: FixtureScope Source # fixtureAction :: IO (FixtureCapturedOutput, FixtureCleanup) Source # | |
CLI flag
newtype CaptureOutputFlag Source #
Constructors
| CaptureOutputFlag Bool |