hspec-golden: Golden tests for hspec
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
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.
[Skip to Readme]
Properties
Versions | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.2.0.0, 0.2.0.1, 0.2.1.0, 0.2.2.0, 0.2.2.1 |
---|---|
Change log | ChangeLog.md |
Dependencies | ansi-terminal (>=1.0 && <2.0), base (>=4.6 && <5), directory (>=1.3.6 && <1.4), filepath (>=1.0 && <2.0), hspec-core (>=2.10 && <3.0), hspec-golden, optparse-applicative (>=0.18.1 && <0.19) [details] |
License | MIT |
Copyright | 2019-Present Stack Builders Inc |
Author | Stack Builders |
Maintainer | Cristhian Motoche <cmotoche@stackbuilders.com> |
Category | Testing |
Home page | https://github.com/stackbuilders/hspec-golden#readme |
Bug tracker | https://github.com/stackbuilders/hspec-golden/issues |
Source repo | head: git clone https://github.com/stackbuilders/hspec-golden |
Uploaded | by stackbuilders at 2024-09-17T14:57:29Z |
Modules
- Test
- Hspec
- Test.Hspec.Golden
- Hspec
Downloads
- hspec-golden-0.2.2.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees