]> code.delx.au - offlineimap/commitdiff
Suppress the test counter
authorJohn Goerzen <jgoerzen@complete.org>
Tue, 12 Aug 2008 14:38:45 +0000 (09:38 -0500)
committerJohn Goerzen <jgoerzen@complete.org>
Tue, 12 Aug 2008 14:38:45 +0000 (09:38 -0500)
testsrc/TestInfrastructure.hs

index f5ae0044323b2f64a1fb8684599d8bfc6ef32aa6..255a2328bef2e092dd76fa4f2d046ad1ef79b923 100644 (file)
@@ -80,5 +80,10 @@ runVerbTestText (HU.PutText put us) t = do
          path' = HU.showPath (HU.path ss)
 
 q :: Testable a => String -> a -> HU.Test
-q = qccheck (defaultConfig {configMaxTest = 250, configMaxFail = 5000})
+q = qccheck (defaultConfig {configMaxTest = 250, configMaxFail = 10000,
+                            configEvery = \_ _ -> ""})
+    -- configEvery = testCount for displaying a running test counter
+    where testCountBase n = " (test " ++ show n ++ "/250)"
+          testCount n _ = testCountBase n ++ 
+                          replicate (length (testCountBase n)) '\b'