2018-08-18 17:13:04 +03:00
|
|
|
{-
|
2019-11-29 17:06:36 +03:00
|
|
|
Run the hledger-lib package's unit tests using the tasty test runner.
|
2018-08-18 17:13:04 +03:00
|
|
|
-}
|
2019-11-29 17:06:36 +03:00
|
|
|
|
|
|
|
-- package-qualified import to avoid cabal missing-home-modules warning (and double-building ?)
|
|
|
|
{-# LANGUAGE PackageImports #-}
|
|
|
|
import "hledger-lib" Hledger (tests_Hledger)
|
2020-03-07 15:00:55 +03:00
|
|
|
import System.Environment (setEnv)
|
2019-11-29 01:45:10 +03:00
|
|
|
import Test.Tasty (defaultMain)
|
|
|
|
|
2020-03-08 01:43:50 +03:00
|
|
|
main :: IO ()
|
2020-03-07 15:00:55 +03:00
|
|
|
main = do
|
2020-03-08 01:10:22 +03:00
|
|
|
setEnv "TASTY_HIDE_SUCCESSES" "true"
|
|
|
|
setEnv "TASTY_ANSI_TRICKS" "false" -- helps the above
|
2020-03-07 15:00:55 +03:00
|
|
|
defaultMain tests_Hledger
|