;lib, cli: hide successes in unit test suites' output

This commit is contained in:
Simon Michael 2020-03-07 04:00:55 -08:00
parent 67d7aae7dc
commit 5ab31f1111
2 changed files with 8 additions and 4 deletions

View File

@ -5,7 +5,9 @@ Run the hledger-lib package's unit tests using the tasty test runner.
-- package-qualified import to avoid cabal missing-home-modules warning (and double-building ?) -- package-qualified import to avoid cabal missing-home-modules warning (and double-building ?)
{-# LANGUAGE PackageImports #-} {-# LANGUAGE PackageImports #-}
import "hledger-lib" Hledger (tests_Hledger) import "hledger-lib" Hledger (tests_Hledger)
import System.Environment (setEnv)
import Test.Tasty (defaultMain) import Test.Tasty (defaultMain)
main = defaultMain tests_Hledger main = do
setEnv "TASTY_HIDE_SUCCESSES" "1"
defaultMain tests_Hledger

View File

@ -7,7 +7,9 @@ Run the hledger package's unit tests using the tasty test runner
-- {-# LANGUAGE PackageImports #-} -- {-# LANGUAGE PackageImports #-}
-- import "hledger" Hledger.Cli (tests_Hledger_Cli) -- import "hledger" Hledger.Cli (tests_Hledger_Cli)
import Hledger.Cli (tests_Hledger_Cli) import Hledger.Cli (tests_Hledger_Cli)
import System.Environment (setEnv)
import Test.Tasty (defaultMain) import Test.Tasty (defaultMain)
main = defaultMain tests_Hledger_Cli main = do
setEnv "TASTY_HIDE_SUCCESSES" "1"
defaultMain tests_Hledger_Cli