Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hedgehog.Internal.Report: Add configPrintShrinkPath #531

Merged
merged 1 commit into from
May 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading