Package0.2.2.0Testing
hspec-golden
Golden tests for hspec
- Version0.2.2.0
- CategoryTesting
- LicenceMIT
- AuthorStack Builders
- MaintainerCristhian Motoche <cmotoche@stackbuilders.com>
- Homepagegithub.com/stackbuilders/hspec-golden#readme
- Pinned byhackage hspec-golden 0.2.2.0
- Sourcehackage.haskell.org/package/hspec-golden-0.2.2.0
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- base-4.20.2.0with GHC
- directory-1.3.8.5with GHC
- filepath-1.5.4.0with GHC
- hspec-core-2.11.14in this set
Used by in this set · 0
Nothing in this set depends on it.