Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
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 golden test
printDetails :: (Text -> IO ()) -> Text -> Text -> ResultDetailsPrinter Source #