HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Package0.2.2.0Testing

hspec-golden

Golden tests for hspec

Modules

1 module
  • Test.Hspec.Golden3Golden tests store the expected output in a separated file. Each time a golden test

Description

Golden tests store the expected output in a separated file. Each time a golden test is executed the output of the subject under test (SUT) is compared with the expected output. If the output of the SUT changes then the test will fail until the expected output is updated.

hspec-golden allows you to write golden tests using the popular hspec.

describe "myFunc" $ it "generates the right output with the right params" $ let output = show $ myFunc params in defaultGolden "myFunc" output

Please see the README on GitHub for more information.

Depends on

4 packages

Used by in this set · 0

Nothing in this set depends on it.