| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Tasty.MGolden
Description
Golden testing provider for tasty
This module implements the golden testing pattern.
Synopsis
- data Mode
- goldenTest :: String -> FilePath -> IO Text -> TestTree
- printDetails :: (Text -> IO ()) -> Text -> Text -> ResultDetailsPrinter
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 |
Arguments
| :: String | Name of the test |
| -> FilePath | Path of the expectation file |
| -> IO Text | Test action |
| -> TestTree |
Define a golden test
printDetails :: (Text -> IO ()) -> Text -> Text -> ResultDetailsPrinter Source #