packages feed

tasty 0.8.1.1 → 0.8.1.2

raw patch · 2 files changed

+39/−29 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Test/Tasty/Ingredients/ConsoleReporter.hs view
@@ -273,35 +273,40 @@    do   isTerm <- hIsTerminalDevice stdout-  hSetBuffering stdout NoBuffering -  let-    ?colors = isTerm-  let-    Quiet quiet = lookupOption opts-    HideSuccesses hideSuccesses = lookupOption opts+  (\k -> if isTerm+    then (do hideCursor; k) `finally` showCursor+    else k) $ do -    output = produceOutput opts tree+      hSetBuffering stdout NoBuffering -  case () of { _-    | quiet -> return ()-    | hideSuccesses && isTerm ->-        consoleOutputHidingSuccesses output smap-    | hideSuccesses && not isTerm ->-        streamOutputHidingSuccesses output smap-    | otherwise -> consoleOutput output smap-  }+      let+        ?colors = isTerm+      let+        Quiet quiet = lookupOption opts+        HideSuccesses hideSuccesses = lookupOption opts -  if quiet-    then do-      fst <- failureStatus smap-      return $ case fst of-        OK -> True-        _ -> False-    else do-      stats <- computeStatistics smap-      printStatistics stats-      return $ statFailures stats == 0+        output = produceOutput opts tree++      case () of { _+        | quiet -> return ()+        | hideSuccesses && isTerm ->+            consoleOutputHidingSuccesses output smap+        | hideSuccesses && not isTerm ->+            streamOutputHidingSuccesses output smap+        | otherwise -> consoleOutput output smap+      }++      if quiet+        then do+          fst <- failureStatus smap+          return $ case fst of+            OK -> True+            _ -> False+        else do+          stats <- computeStatistics smap+          printStatistics stats+          return $ statFailures stats == 0  -- | Do not print test results (see README for details) newtype Quiet = Quiet Bool
tasty.cabal view
@@ -2,14 +2,19 @@ --  see http://haskell.org/cabal/users-guide/  name:                tasty-version:             0.8.1.1+version:             0.8.1.2 synopsis:            Modern and extensible testing framework-description:         See <http://documentup.com/feuerbach/tasty>+description:         Tasty is a modern testing framework for Haskell.+                     It lets you combine your unit tests, golden+                     tests, QuickCheck/SmallCheck properties, and any+                     other types of tests into a single test suite.+                     See <http://documentup.com/feuerbach/tasty>. license:             MIT license-file:        LICENSE-author:              Roman Cheplyaka-maintainer:          roma@ro-che.info+author:              Roman Cheplyaka <roma@ro-che.info>+maintainer:          Roman Cheplyaka <roma@ro-che.info> homepage:            http://documentup.com/feuerbach/tasty+bug-reports:         https://github.com/feuerbach/tasty/issues -- copyright:            category:            Testing build-type:          Simple