hedgehog-golden: Golden testing capabilities for hedgehog using Aeson

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.

[maintain]

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]

Properties

Versions0.6.0, 0.6.0, 1.0.0
Change logCHANGELOG.md
Dependenciesaeson (>=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.0 && <1.4), extra (>=1.6.0 && <1.7), hedgehog (>=0.6.1 && <0.7), text (>=1.2.3.1 && <1.3), transformers (>=0.5.6.2 && <0.6) [details]
LicenseBSD-3-Clause
AuthorFelix Mulder
Maintainerfelix.mulder@gmail.com
CategoryTesting
Home pagehttps://github.com/felixmulder/hedgehog-golden
Bug trackerhttps://github.com/felixmulder/hedgehog-golden/issues
Source repositoryhead: git clone git://github.com/felixmulder/hedgehog-golden.git
UploadedSat Nov 30 12:57:26 UTC 2019 by felixmulder

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees


Readme for hedgehog-golden-0.6.0

[back to package description]

Hedgehog Golden

A golden file extension to hedgehog

Hedgehog support

Hedgehog v1.x series is supported by hedgehog-golden v1.x series

Hedgehog v0.6.x series is supported by hedgehog-golden v0.6.x series

Example

{-# LANGUAGE TemplateHaskell #-}

import           Hedgehog
import qualified Hedgehog.Gen as Gen
import qualified Hedgehog.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