tasty-fail-fast 0.0.1 → 0.0.2
raw patch · 3 files changed
+7/−4 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- changelog.md +2/−0
- src/Test/Tasty/Ingredients/FailFast.hs +3/−2
- tasty-fail-fast.cabal +2/−2
changelog.md view
@@ -1,2 +1,4 @@+0.0.2+* Stop erroring when applied to TestManager, just make it a no-op. 0.0.1 * Initial release
src/Test/Tasty/Ingredients/FailFast.hs view
@@ -23,15 +23,16 @@ ------------------------------------------------------------------------------- --- | Decorate a TestReporter. Will throw an error if you provide a TestManager.+-- | Decorate a TestReporter. Only applicable to TestReporters. Will+-- be a noop for TestManager. failFast :: Ingredient -> Ingredient-failFast (TestManager _ _) = error "FailFast must be applied to a TestReporter" failFast (TestReporter opts f) = TestReporter (ffOpt:opts) f' where ffOpt = Option (Proxy :: Proxy FailFast) f' oset tree = let FailFast ff = lookupOption oset in if ff then ffHijack <$> f oset tree else f oset tree+failFast i = i -- not applicable -------------------------------------------------------------------------------
tasty-fail-fast.cabal view
@@ -1,5 +1,5 @@ name: tasty-fail-fast-version: 0.0.1+version: 0.0.2 synopsis: Adds the ability to fail a tasty test suite on first test failure description: tasty-fail-fast wraps any ingredient to fail as soon as the first test fails. For example:@@ -36,7 +36,7 @@ build-depends: base < 5 , tasty >= 0.10 && < 0.12 , stm >= 2.1- , containers >= 0.1.0.0+ , containers >= 0.5.0.0 , tagged default-language: Haskell2010