Skip to content

Commit

Permalink
Put the golden-file filename in the failure message of diffVsGoldenFile
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed May 10, 2023
1 parent e7f3c9f commit 98ab0cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Hedgehog/Extras/Test/Golden.hs
Expand Up @@ -62,7 +62,9 @@ diffVsGoldenFile actualContent referenceFile = GHC.withFrozenCallStack $ do
case difference of
[] -> pure ()
[Both{}] -> pure ()
_ -> failMessage callStack $ ppDiff difference
_ -> do
H.note_ $ "Golden test failed against golden file: " <> referenceFile
failMessage callStack $ ppDiff difference
else if createFiles
then do
-- CREATE_GOLDEN_FILES is set, so we create any golden files that don't
Expand Down

0 comments on commit 98ab0cf

Please sign in to comment.