drasil-file-handling-0.1.1.0: A framework for code and document generation for scientific software - file-handling SubPackage
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Documentation

goldenTestingGroup Source #

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., "Golden Tests").

-> [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.