| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Drasil.FileHandling.GoldenTesting
Description
A golden testing suite based on tasty-golden, specialized to FileLayout
and prioritizing checking diffs of whole directories:
https://hackage-content.haskell.org/package/tasty-golden-2.3.6
Run your test suite with --accept to accept files as the new golden tests.
Synopsis
- goldenTestingGroup :: OsPath -> OsPath -> TestName -> [GoldenTestCase] -> TestTree
- data GoldenTestCase
- goldenTest :: TestName -> FileLayout -> GoldenTestCase
Documentation
Arguments
| :: OsPath | The relative directory where newly generated files should be written. |
| -> OsPath | The relative directory where the expected/golden files are stored. |
| -> TestName | The name of the test group (e.g., |
| -> [GoldenTestCase] | A list of golden test cases to run. |
| -> TestTree |
Create a golden testing group relative to a main build folder and golden artifacts folder.
data GoldenTestCase Source #
A golden test case.
goldenTest :: TestName -> FileLayout -> GoldenTestCase Source #
Create a golden test case for a given FileLayout. Within the context of a
goldenTestingGroup, will be dumped to the build folder and compared with
the golden artifacts folder.