packages feed

tasty-hspec 0.1 → 0.1.0.1

raw patch · 2 files changed

+6/−5 lines, 2 filesdep ~tastynew-uploader

Dependency ranges changed: tasty

Files

Test/Tasty/Hspec.hs view
@@ -13,7 +13,7 @@  import Data.Typeable        (Typeable) import Test.Tasty           (TestName, TestTree)-import Test.Tasty.Providers (IsTest(..), Result(..), singleTest)+import Test.Tasty.Providers (IsTest(..), singleTest, testPassed, testFailed) import Test.Hspec.Runner    (Summary(..), hspecResult)  -- | Turn an hspec @Spec@ into a tasty @TestTree@.@@ -49,6 +49,7 @@  instance IsTest MySpec where     run _ (MySpec spec) _ = do-        (Summary examples failures) <- hspecResult spec-        return $ Result (failures == 0) ""+        (Summary _ failures) <- hspecResult spec+        return $ if (failures == 0) then testPassed "" else testFailed ""+        --return $ Result (failures == 0) ""     testOptions = return []
tasty-hspec.cabal view
@@ -1,5 +1,5 @@ name:                tasty-hspec-version:             0.1+version:             0.1.0.1 synopsis:            Hspec support for the Tasty test framework. description:         Hspec support for the Tasty test framework. @@ -17,5 +17,5 @@   other-extensions:    DeriveDataTypeable   build-depends:       base ==4.*                      , hspec-                     , tasty+                     , tasty >= 0.8   default-language:    Haskell2010