| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Tasty.MGolden
Description
Golden testing provider for tasty
This module implements the golden testing pattern.
Please refer to the README.md for usage instructions.
Documentation
Golden test run mode
Constructors
| RunTest | Run the tests, error (with diff) on actual vs expectation mismatch |
| UpdateExpected | Run the tests, update the expectation on actual vs expectation mismatch |
Define a diff test
Arguments
| :: String | Name of the test |
| -> FilePath | Path of the expectation file |
| -> IO Text | Test action |
| -> TestTree |
Define a golden test
Arguments
| :: (Text -> IO ()) | line printer |
| -> Text | expected text |
| -> Text | actual (observed) text |
| -> ResultDetailsPrinter |
Golden test diff details printer