Skip to content

Commit

Permalink
Hedgehog.Internal.Report: Add configPrintShrinkPath
Browse files Browse the repository at this point in the history
  • Loading branch information
sol authored and moodmosaic committed May 22, 2024
1 parent 0040de7 commit 06fef40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hedgehog/src/Hedgehog/Internal/Report.hs
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ ppResultWith config name (Report tests discards coverage seed result) = do
ppShrinkDiscard (failureShrinks failure) discards <>
"." <>
(
if configPrintReproduceMessage config then
if configPrintShrinkPath config then
WL.line <>
"shrink path:" <+>
ppSkip (SkipToShrink tests discards $ failureShrinkPath failure)
Expand Down Expand Up @@ -1317,6 +1317,7 @@ data Config =
Config {
configContext :: Context
, configPrintFailedAtLocation :: Bool
, configPrintShrinkPath :: Bool
, configPrintReproduceMessage :: Bool
, configPrintPrefixIcons :: PrintPrefixIcons
} deriving (Eq, Show)
Expand All @@ -1331,7 +1332,7 @@ data PrintPrefixIcons =
deriving (Eq, Show)

defaultConfig :: Config
defaultConfig = Config FullContext True True EnablePrefixIcons
defaultConfig = Config FullContext True True True EnablePrefixIcons

renderResultWith :: MonadIO m => Config -> UseColor -> Maybe PropertyName -> Report Result -> m String
renderResultWith config color name x =
Expand Down

0 comments on commit 06fef40

Please sign in to comment.