Runs a Golden test.
Modulesandwich-0.3.1.0Haskell2010
Test.Sandwich.Golden
Functions for golden testing.
Synopsis
- value golden
- value goldenText
- value goldenString
- value goldenJSON
- value goldenShowable
- value mkGolden
- value goldenOutput
- value goldenWriteToFile
- value goldenReadFromFile
- value goldenFile
- value goldenActualFile
- value goldenFailFirstTime
- Packagesandwich-0.3.1.0
- Exports12
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceGolden.hs
Main test function
Built-in Goldens
Golden for a Text.
Golden for a String.
Make your own Golden constructor by providing goldenWriteToFile and goldenReadFromFile.
Parameters for a Golden
Expected output.
How to write into the golden file the file.
How to read the file.
Where to read/write the golden file for this test.
Where to save the actual file for this test. If it is Nothing then no file is written.
Whether to record a failure the first time this test is run.