This package provides support for «golden testing».
A golden test is an IO action that writes its result to a file. To pass the test, this output file should be identical to the corresponding «golden» file, which contains the correct result for the test.
If the test runner is called with the
-i option, the diff of any failing golden test is shown
to the user. Based upon this diff, the user can choose to update the golden standard or to
fix the test case as necessary. Interactive mode requires that at least
git diff and
available, or preferrably
colordiff for character-based diffs.
For a non-trivial example see the Agda tests, which is used for testing the Agda compiler.
Philipp Hausmann is the primary maintainer.