Description
Golden testing capabilities for hedgehog using Aeson.
Description
Golden testing capabilities for hedgehog using Aeson. Generates pretty output in cases of errors and uses Hedgehog to eat all your bugs!
README.md
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