tasty 0.10.1.2 → 0.11
raw patch · 6 files changed
+14/−4 lines, 6 files
Files
- CHANGELOG.md +5/−0
- Test/Tasty/Core.hs +4/−0
- Test/Tasty/Ingredients/ConsoleReporter.hs +1/−3
- Test/Tasty/Providers.hs +2/−0
- Test/Tasty/Run.hs +1/−0
- tasty.cabal +1/−1
CHANGELOG.md view
@@ -1,6 +1,11 @@ Changes ======= +Version 0.11+------------++New field `resultShortDescription` of `Result`+ Version 0.10.1.2 ----------------
Test/Tasty/Core.hs view
@@ -53,6 +53,9 @@ -- -- For a failed test, 'resultDescription' should typically provide more -- information about the failure.+ , resultShortDescription :: String+ -- ^ The short description printed in the test run summary, usually @OK@ or+ -- @FAIL@. , resultTime :: Time -- ^ How long it took to run the test, in seconds. }@@ -69,6 +72,7 @@ exceptionResult e = Result { resultOutcome = Failure $ TestThrewException e , resultDescription = "Exception: " ++ show e+ , resultShortDescription = "FAIL" , resultTime = 0 }
Test/Tasty/Ingredients/ConsoleReporter.hs view
@@ -83,9 +83,7 @@ then ok else fail time = resultTime result- if resultSuccessful result- then printFn "OK"- else printFn "FAIL"+ printFn (resultShortDescription result) -- print time only if it's significant when (time >= 0.01) $ printFn (printf " (%.2fs)" time)
Test/Tasty/Providers.hs view
@@ -24,6 +24,7 @@ testPassed desc = Result { resultOutcome = Success , resultDescription = desc+ , resultShortDescription = "OK" , resultTime = 0 } @@ -34,5 +35,6 @@ testFailed desc = Result { resultOutcome = Failure TestFailed , resultDescription = desc+ , resultShortDescription = "FAIL" , resultTime = 0 }
Test/Tasty/Run.hs view
@@ -140,6 +140,7 @@ { resultOutcome = Failure $ TestTimedOut t , resultDescription = "Timed out after " ++ tstr+ , resultShortDescription = "TIMEOUT" , resultTime = fromIntegral t } fromMaybe timeoutResult <$> timeout t a
tasty.cabal view
@@ -2,7 +2,7 @@ -- see http://haskell.org/cabal/users-guide/ name: tasty-version: 0.10.1.2+version: 0.11 synopsis: Modern and extensible testing framework description: Tasty is a modern testing framework for Haskell. It lets you combine your unit tests, golden