tasty-hspec 1.1.7 → 1.2
raw patch · 4 files changed
+14/−8 lines, 4 filesdep ~basedep ~hspecdep ~hspec-corePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, hspec, hspec-core, tasty-quickcheck
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- cabal.project +2/−0
- src/Test/Tasty/Hspec.hs +7/−7
- tasty-hspec.cabal +1/−1
CHANGELOG.md view
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to the [Haskell Package Versioning Policy](https://pvp.haskell.org/). +## [1.2] - 2021-05-28++- No changes, but 1.1.7 should have been a major version bump due to dropping the `Test.Hspec` re-export.+ ## [1.1.7] - 2021-05-12 ### Changed
cabal.project view
@@ -1,1 +1,3 @@ packages: .++optimization: False
src/Test/Tasty/Hspec.hs view
@@ -18,7 +18,6 @@ ) where -import Control.Applicative ((<$>)) import Control.Monad (guard) import Data.Maybe (catMaybes, fromMaybe, mapMaybe) import Data.Proxy@@ -36,8 +35,8 @@ -- $examples ----- The simplest usage of this library involves first creating a 'T.TestTree' in--- @IO@, then running it with 'T.defaultMain'.+-- The simplest usage of this library involves first creating a 'T.TestTree' in @IO@, then running it with+-- 'T.defaultMain'. -- -- @ -- main = do@@ -61,7 +60,7 @@ -- ] -- @ ----- However, if you don't do any @IO@ during 'Spec' creation, or the @IO@ need+-- If you don't do any @IO@ during 'Spec' creation, or the @IO@ need -- not be performed at any particular time relative to other @IO@ actions, it's -- perfectly fine to use 'System.IO.unsafePerformIO'. --@@ -75,14 +74,14 @@ -- @ -- | Create a <https://hackage.haskell.org/package/tasty tasty> 'T.TestTree' from an--- <https://hackage.haskell.org/package/hspec Hspec> 'H.Spec'.+-- <https://hackage.haskell.org/package/hspec hspec> 'H.Spec'. testSpec :: T.TestName -> H.Spec -> IO T.TestTree testSpec name spec = do trees <- testSpecs spec pure (T.testGroup name trees) -- | Create a list of <https://hackage.haskell.org/package/tasty tasty> 'T.TestTree' from an--- <https://hackage.haskell.org/package/hspec Hspec> 'H.Spec'. This returns the same tests as 'testSpec'+-- <https://hackage.haskell.org/package/hspec hspec> 'H.Spec'. This returns the same tests as 'testSpec' -- but doesn't create a <https://hackage.haskell.org/package/tasty tasty> test group from them. testSpecs :: H.Spec -> IO [T.TestTree] testSpecs spec = do@@ -165,7 +164,8 @@ -- -- Set via the command line flag @--treat-pending-as (success|failure)@. data TreatPendingAs- = TreatPendingAsFailure+ = -- | Default.+ TreatPendingAsFailure | TreatPendingAsSuccess instance T.IsOption TreatPendingAs where
tasty-hspec.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.0 name: tasty-hspec-version: 1.1.7+version: 1.2 synopsis: Hspec support for the Tasty test framework. description: This package provides a Tasty provider for Hspec test suites.