Skip to content

Commit

Permalink
cabal-validate: --no-hide-successes
Browse files Browse the repository at this point in the history
Add `./validate.sh --no-hide-successes`, which causes the test suites to
print out tests that are run when they succeed. This significantly
increases visibility into which tests are running.
  • Loading branch information
9999years authored and Mikolaj committed Nov 22, 2024
1 parent 75cac83 commit d311877
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cabal-validate/src/Cli.hs
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ resolveOpts opts = do
else "cabal.validate.project"

tastyArgs' =
"--hide-successes"
: maybe
optional (rawTastyHideSuccesses opts) "--hide-successes"
++ maybe
[]
(\tastyPattern -> ["--pattern", tastyPattern])
(rawTastyPattern opts)
Expand Down Expand Up @@ -282,6 +282,7 @@ data RawOpts = RawOpts
, rawExtraCompilers :: [FilePath]
, rawTastyPattern :: Maybe String
, rawTastyArgs :: [String]
, rawTastyHideSuccesses :: Bool
, rawDoctest :: Bool
, rawSteps :: [Step]
, rawListSteps :: Bool
Expand Down Expand Up @@ -352,6 +353,11 @@ rawOptsParser =
<> help "Extra arguments to pass to Tasty test suites"
)
)
<*> boolOption
True
"hide-successes"
( help "Do not print tests that passed successfully"
)
<*> boolOption
False
"doctest"
Expand Down

0 comments on commit d311877

Please sign in to comment.