hspec 1.1.2 → 1.1.3
raw patch · 6 files changed
+28/−18 lines, 6 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Test.Hspec.Core: data Pending
+ Test.Hspec.Core: hHspec :: Handle -> Specs -> IO [EvaluatedSpec]
+ Test.Hspec.Core: hspec :: Specs -> IO [EvaluatedSpec]
+ Test.Hspec.Core: hspecB :: Specs -> IO Bool
+ Test.Hspec.Core: hspecX :: Specs -> IO a
+ Test.Hspec.Core: pending :: String -> Pending
Files
- Test/Hspec.hs +1/−3
- Test/Hspec/Core.hs +20/−12
- Test/Hspec/Formatters.hs +1/−1
- Test/Hspec/Internal.hs +5/−0
- Test/Hspec/Runner.hs +0/−1
- hspec.cabal +1/−1
Test/Hspec.hs view
@@ -15,7 +15,7 @@ -- it over this one. For documentation on the monadic API look at -- "Test.Hspec.Monadic". -module Test.Hspec (+module Test.Hspec {-# WARNING "This module will re-export Test.Hspec.Monadic in the future. Either use Test.Hspec.Core as a drop-in replacement, or migrate your code to the monadic API!" #-} ( -- * Introduction -- $intro@@ -42,8 +42,6 @@ ) where import Test.Hspec.Core-import Test.Hspec.Runner-import Test.Hspec.Pending -- $intro --
Test/Hspec/Core.hs view
@@ -3,18 +3,27 @@ -- This module contains the core types, constructors, classes, instances, and -- utility functions common to hspec. module Test.Hspec.Core (- SpecTree (..)+-- * Types+ Spec+, Specs , Example (..)-, Result (..)-, descriptions+, Pending +-- * Defining a spec , describe , it-, Spec-, Specs-, UnevaluatedSpec-, EvaluatedSpec+, pending +-- * Running a spec+, hspec+, hspecB+, hspecX+, hHspec++-- * Internals+, SpecTree (..)+, EvaluatedSpec+, Result (..) , quantify -- * Deprecated types and functions@@ -23,9 +32,10 @@ -- -- If you still need any of those, please open an issue and describe your use -- case: <https://github.com/hspec/hspec/issues>+, descriptions , AnyExample , safeEvaluateExample-+, UnevaluatedSpec , success , failure , isFailure@@ -34,6 +44,8 @@ import Test.Hspec.Internal hiding (safeEvaluateExample) import qualified Test.Hspec.Internal as Internal+import Test.Hspec.Pending+import Test.Hspec.Runner {-# DEPRECATED UnevaluatedSpec "use Spec instead" #-} type UnevaluatedSpec = Spec@@ -42,10 +54,6 @@ descriptions :: Specs -> Specs descriptions = id {-# DEPRECATED descriptions "this is no longer needed, and will be removed in a future release" #-}--type Specs = [Spec]--type EvaluatedSpec = SpecTree Result {-# DEPRECATED success "This will be removed with the next major release. If you still need this, raise your voice!" #-} success :: [EvaluatedSpec] -> Bool
Test/Hspec/Formatters.hs view
@@ -39,7 +39,7 @@ ) where import Data.Maybe-import Test.Hspec.Core (quantify)+import Test.Hspec.Internal (quantify) import Data.List (intersperse) import Text.Printf import Control.Monad (unless)
Test/Hspec/Internal.hs view
@@ -2,6 +2,8 @@ module Test.Hspec.Internal ( SpecTree (..) , Spec (..)+, Specs+, EvaluatedSpec , Example (..) , safeEvaluateExample , Result (..)@@ -15,6 +17,9 @@ import Control.Exception import qualified Test.Hspec.Pending as Pending++type Specs = [Spec]+type EvaluatedSpec = SpecTree Result -- | The result of running an example. data Result = Success | Pending (Maybe String) | Fail String
Test/Hspec/Runner.hs view
@@ -7,7 +7,6 @@ ) where import Test.Hspec.Internal-import Test.Hspec.Core (EvaluatedSpec, Specs) import Test.Hspec.Formatters import Test.Hspec.Formatters.Internal import System.IO
hspec.cabal view
@@ -1,5 +1,5 @@ name: hspec-version: 1.1.2+version: 1.1.3 cabal-version: >= 1.8 build-type: Simple license: BSD3