hedgehog-golden: Golden testing capabilities for hedgehog using Aeson

[ bsd3, library, testing ] [ Propose Tags ]

Golden testing capabilities for hedgehog using Aeson. Generates pretty output in cases of errors and uses Hedgehog to eat all your bugs!


[Skip to Readme]
Versions [faq] 0.6.0, 1.0.0
Change log CHANGELOG.md
Dependencies aeson (>=1.4.2.0 && <1.5), aeson-pretty (>=0.8.7 && <0.9), base (>=4.12.0.0 && <4.13), bytestring (>=0.10.8.0 && <0.11), containers (>=0.6.0.1 && <0.7), Diff (>=0.3.4 && <0.4), directory (>=1.3.3.2 && <1.4), extra (>=1.6.0 && <1.7), hedgehog (==1.0.*), text (>=1.2.3.1 && <1.3) [details]
License BSD-3-Clause
Author Felix Mulder
Maintainer felix.mulder@gmail.com
Category Testing
Home page https://github.com/felixmulder/hedgehog-golden
Bug tracker https://github.com/felixmulder/hedgehog-golden/issues
Source repo head: git clone git://github.com/felixmulder/hedgehog-golden.git
Uploaded by felixmulder at Fri Nov 29 18:18:06 UTC 2019
Distributions NixOS:1.0.0
Downloads 87 total (25 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for hedgehog-golden-1.0.0

[back to package description]

Hedgehog Golden

A golden file extension to hedgehog

Example

{-# LANGUAGE TemplateHaskell #-}

import           Hedeghog
import qualified Hedeghog.Gen as Gen
import qualified Hedeghog.Golden.Aeson as Aeson

-- | A golden test for characters in the hex range
prop_char_golden :: Property
prop_char_golden = Aeson.goldenProperty Gen.hexit

tests :: IO Bool
tests = checkParallel $$discover