Skip to content

Commit

Permalink
Show less context on failure (fixes #26)
Browse files Browse the repository at this point in the history
  • Loading branch information
sol committed Nov 29, 2023
1 parent 899cf9a commit dc0fcd0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog for hspec-hedgehog

## 0.2.0.0
- [#29](https://github.com/parsonsmatt/hspec-hedgehog/pull/29) @sol
- Show less context on failure.

## 0.1.1.0
- [#30](https://github.com/parsonsmatt/hspec-hedgehog/pull/30) @sol
- Show classification on success
Expand Down
6 changes: 6 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ package hspec-hedgehog
ghc-options: -Werror

tests: True

source-repository-package
type: git
location: https://github.com/sol/hedgehog
tag: 600abc71379c8642af15b8ddaa97f578bfa19a3b
subdir: hedgehog
2 changes: 1 addition & 1 deletion src/Test/Hspec/Hedgehog.hs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ instance (m ~ IO) => Example (a -> PropertyT m ()) where
Just (rng, _) -> pure (uncurry Seed (unseedSMGen (coerce rng)))
hedgeResult <- checkReport propConfig size seed (propertyTest prop) cb

let renderResult color = Hedge.renderResult color (Just "property") hedgeResult
let renderResult color = renderResultWith (Context 3) color (Just "property") hedgeResult

case reportStatus hedgeResult of
Failed FailureReport{..} -> do
Expand Down

0 comments on commit dc0fcd0

Please sign in to comment.