tasty-hedgehog 1.2.0.0 → 1.3.0.0
raw patch · 4 files changed
+13/−10 lines, 4 filesdep ~hedgehogPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: hedgehog
API changes (from Hackage documentation)
Files
- changelog.md +4/−0
- src/Test/Tasty/Hedgehog.hs +6/−6
- tasty-hedgehog.cabal +3/−3
- test/Main.hs +0/−1
changelog.md view
@@ -1,5 +1,9 @@ # Revision history for tasty-hedgehog +## 1.3.0.0 -- 2022-08-22++* The `testProperty` function has been undeprecated. Its behaviour differs from that in version `1.1.0.0` and below in that it now passes no `PropertyName` to Hedgehog. Therefore, Hedgehog will render the text `<property>` in its instructions for reproducing test failures, as opposed to whatever description is provided for `testProperty`.+ ## 1.2.0.0 -- 2022-03-07 * Add `testPropertyNamed` function and deprecate `testProperty`.
src/Test/Tasty/Hedgehog.hs view
@@ -37,13 +37,12 @@ import Hedgehog.Internal.Report import Hedgehog.Internal.Seed as Seed -data HP = HP PropertyName Property+data HP = HP (Maybe PropertyName) Property deriving (Typeable) -- | Create a 'T.TestTree' from a Hedgehog 'Property'.-{-# DEPRECATED testProperty "testProperty will cause Hedgehog to provide incorrect instructions for re-checking properties" #-} testProperty :: T.TestName -> Property -> T.TestTree-testProperty name prop = T.singleTest name (HP (PropertyName name) prop)+testProperty name prop = T.singleTest name (HP Nothing prop) -- | `testPropertyNamed` @testName propertyName property@ creates a -- 'T.TestTree' from @property@ using @testName@ as the displayed@@ -61,7 +60,8 @@ -- -- @since 1.2.0.0 testPropertyNamed :: T.TestName -> PropertyName -> Property -> T.TestTree-testPropertyNamed name propName prop = T.singleTest name (HP propName prop)+testPropertyNamed name propName prop =+ T.singleTest name (HP (Just propName) prop) -- | Create a 'T.TestTree' from a Hedgehog 'Group'. fromGroup :: Group -> T.TestTree@@ -162,11 +162,11 @@ reportOutput :: Bool -> UseColor- -> PropertyName+ -> Maybe PropertyName -> Report Result -> IO String reportOutput showReplay useColor name report = do- s <- renderResult useColor (Just name) report+ s <- renderResult useColor name report pure $ case reportStatus report of Failed fr -> let
tasty-hedgehog.cabal view
@@ -1,5 +1,5 @@ name: tasty-hedgehog-version: 1.2.0.0+version: 1.3.0.0 license: BSD3 license-file: LICENCE author: Dave Laing@@ -21,7 +21,7 @@ library exposed-modules: Test.Tasty.Hedgehog- build-depends: base >= 4.8 && <4.17+ build-depends: base >= 4.8 && <4.18 , tagged >= 0.8 && < 0.9 , tasty >= 0.11 && < 1.5 , hedgehog >= 1.0.2 && < 1.1.2@@ -33,7 +33,7 @@ type: exitcode-stdio-1.0 main-is: Main.hs hs-source-dirs: test- build-depends: base >= 4.8 && <4.17+ build-depends: base >= 4.8 && <4.18 , tasty >= 0.11 && < 1.5 , tasty-expected-failure >= 0.11 && < 0.13 , hedgehog >= 1.0.2 && < 1.1.2
test/Main.hs view
@@ -1,4 +1,3 @@-{-# OPTIONS_GHC -Wno-deprecations #-} {-# language OverloadedStrings #-} module Main where