packages feed

hspec 2.5.9 → 2.6.0

raw patch · 4 files changed

+19/−23 lines, 4 filesdep ~hspec-coredep ~hspec-discoverPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: hspec-core, hspec-discover

API changes (from Hackage documentation)

- Test.Hspec.Core: Error :: Maybe String -> SomeException -> FailureReason
- Test.Hspec.Core: ExpectedButGot :: Maybe String -> String -> String -> FailureReason
- Test.Hspec.Core: Failure :: Maybe Location -> FailureReason -> ResultStatus
- Test.Hspec.Core: Item :: String -> Maybe Location -> Maybe Bool -> (Params -> (ActionWith a -> IO ()) -> ProgressCallback -> IO Result) -> Item a
- Test.Hspec.Core: Leaf :: a -> Tree c a
- Test.Hspec.Core: Location :: FilePath -> Int -> Int -> Location
- Test.Hspec.Core: NoReason :: FailureReason
- Test.Hspec.Core: Node :: String -> [Tree c a] -> Tree c a
- Test.Hspec.Core: NodeWithCleanup :: c -> [Tree c a] -> Tree c a
- Test.Hspec.Core: Params :: Args -> Int -> Params
- Test.Hspec.Core: Pending :: Maybe Location -> Maybe String -> ResultStatus
- Test.Hspec.Core: Reason :: String -> FailureReason
- Test.Hspec.Core: Result :: String -> ResultStatus -> Result
- Test.Hspec.Core: SpecM :: WriterT [SpecTree a] IO r -> SpecM a r
- Test.Hspec.Core: Success :: ResultStatus
- Test.Hspec.Core: [itemExample] :: Item a -> Params -> (ActionWith a -> IO ()) -> ProgressCallback -> IO Result
- Test.Hspec.Core: [itemIsParallelizable] :: Item a -> Maybe Bool
- Test.Hspec.Core: [itemLocation] :: Item a -> Maybe Location
- Test.Hspec.Core: [itemRequirement] :: Item a -> String
- Test.Hspec.Core: [locationColumn] :: Location -> Int
- Test.Hspec.Core: [locationFile] :: Location -> FilePath
- Test.Hspec.Core: [locationLine] :: Location -> Int
- Test.Hspec.Core: [paramsQuickCheckArgs] :: Params -> Args
- Test.Hspec.Core: [paramsSmallCheckDepth] :: Params -> Int
- Test.Hspec.Core: [resultInfo] :: Result -> String
- Test.Hspec.Core: [resultStatus] :: Result -> ResultStatus
- Test.Hspec.Core: class Example e where {
- Test.Hspec.Core: context :: HasCallStack => String -> SpecWith a -> SpecWith a
- Test.Hspec.Core: data FailureReason
- Test.Hspec.Core: data Item a
- Test.Hspec.Core: data Location
- Test.Hspec.Core: data Params
- Test.Hspec.Core: data Result
- Test.Hspec.Core: data ResultStatus
- Test.Hspec.Core: data Tree c a
- Test.Hspec.Core: defaultParams :: Params
- Test.Hspec.Core: describe :: String -> [SpecTree a] -> SpecTree a
- Test.Hspec.Core: evaluateExample :: Example e => e -> Params -> (ActionWith (Arg e) -> IO ()) -> ProgressCallback -> IO Result
- Test.Hspec.Core: fromSpecList :: () => [SpecTree a] -> SpecWith a
- Test.Hspec.Core: it :: Example a => String -> a -> SpecTree (Arg a)
- Test.Hspec.Core: location :: HasCallStack -> Maybe Location
- Test.Hspec.Core: mapSpecItem :: () => (ActionWith a -> ActionWith b) -> (Item a -> Item b) -> SpecWith a -> SpecWith b
- Test.Hspec.Core: mapSpecItem_ :: () => (Item a -> Item a) -> SpecWith a -> SpecWith a
- Test.Hspec.Core: modifyParams :: () => (Params -> Params) -> SpecWith a -> SpecWith a
- Test.Hspec.Core: newtype SpecM a r
- Test.Hspec.Core: parallel :: () => SpecWith a -> SpecWith a
- Test.Hspec.Core: pending :: HasCallStack -> Expectation
- Test.Hspec.Core: pendingWith :: HasCallStack -> String -> Expectation
- Test.Hspec.Core: runIO :: () => IO r -> SpecM a r
- Test.Hspec.Core: runSpecM :: () => SpecWith a -> IO [SpecTree a]
- Test.Hspec.Core: safeEvaluateExample :: Example e => e -> Params -> (ActionWith (Arg e) -> IO ()) -> ProgressCallback -> IO Result
- Test.Hspec.Core: sequential :: () => SpecWith a -> SpecWith a
- Test.Hspec.Core: specGroup :: HasCallStack => String -> [SpecTree a] -> SpecTree a
- Test.Hspec.Core: specItem :: (HasCallStack, Example a) => String -> a -> SpecTree (Arg a)
- Test.Hspec.Core: specify :: (HasCallStack, Example a) => String -> a -> SpecWith (Arg a)
- Test.Hspec.Core: type ActionWith a = a -> IO ()
- Test.Hspec.Core: type Progress = (Int, Int)
- Test.Hspec.Core: type ProgressCallback = Progress -> IO ()
- Test.Hspec.Core: type Spec = SpecWith ()
- Test.Hspec.Core: type SpecTree a = Tree ActionWith a Item a
- Test.Hspec.Core: type SpecWith a = SpecM a ()
- Test.Hspec.Core: type family Arg e :: Type;
- Test.Hspec.Core: xcontext :: HasCallStack => String -> SpecWith a -> SpecWith a
- Test.Hspec.Core: xdescribe :: HasCallStack => String -> SpecWith a -> SpecWith a
- Test.Hspec.Core: xit :: (HasCallStack, Example a) => String -> a -> SpecWith (Arg a)
- Test.Hspec.Core: xspecify :: (HasCallStack, Example a) => String -> a -> SpecWith (Arg a)
- Test.Hspec.Core: }
+ Test.Hspec: fcontext :: HasCallStack => String -> SpecWith a -> SpecWith a
+ Test.Hspec: fdescribe :: HasCallStack => String -> SpecWith a -> SpecWith a
+ Test.Hspec: fit :: (HasCallStack, Example a) => String -> a -> SpecWith (Arg a)
+ Test.Hspec: focus :: () => SpecWith a -> SpecWith a
+ Test.Hspec: fspecify :: (HasCallStack, Example a) => String -> a -> SpecWith (Arg a)

Files

CHANGES.markdown view
@@ -1,3 +1,8 @@+## Changes in 2.6.0+   - Allow to focus individual spec items (see #319)+   - Do not calculate diff on `--no-diff` (see #332)+   - Remove deprecated module Test.Hspec.Core+ ## Changes in 2.5.9    - Extract source locations from RecConError (see #375) 
hspec.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: bf5dc1c765ad341077da7d97ffc9db5652d6b90d225ae6e211ba1be255351ca6+-- hash: f6583555d5f4a1fddb54a7003125379b4bc4dc0603254ef4afbcacfc19ffa3ae  name:             hspec-version:          2.5.9+version:          2.6.0 license:          MIT license-file:     LICENSE copyright:        (c) 2011-2018 Simon Hengel,@@ -46,12 +46,11 @@   build-depends:       QuickCheck >=2.10     , base ==4.*-    , hspec-core ==2.5.9-    , hspec-discover ==2.5.9+    , hspec-core ==2.6.0+    , hspec-discover ==2.6.0     , hspec-expectations ==0.8.2.*   exposed-modules:       Test.Hspec-      Test.Hspec.Core       Test.Hspec.Discover       Test.Hspec.Formatters       Test.Hspec.QuickCheck
src/Test/Hspec.hs view
@@ -39,6 +39,16 @@ , xdescribe , xcontext +-- * Focused spec items+-- |+-- During a test run, when a spec contains /focused/ spec items, all other spec+-- items are ignored.+, focus+, fit+, fspecify+, fdescribe+, fcontext+ -- * Hooks , ActionWith , before
− src/Test/Hspec/Core.hs
@@ -1,18 +0,0 @@--- | Stability: unstable-module Test.Hspec.Core {-# DEPRECATED "use \"Test.Hspec.Core.Spec\" instead" #-} (-  module Test.Hspec.Core.Spec--- * Deprecated functions-, describe-, it-) where--import           Test.Hspec.Core.Spec hiding (describe, it)---{-# DEPRECATED describe "use `specGroup` instead" #-}-describe :: String -> [SpecTree a] -> SpecTree a-describe = specGroup--{-# DEPRECATED it "use `specItem` instead" #-}-it :: Example a => String -> a -> SpecTree (Arg a)-it = specItem