tasty-hedgehog 1.0.1.0 → 1.1.0.0
raw patch · 3 files changed
+20/−5 lines, 3 filesdep ~basedep ~hedgehogPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, hedgehog
API changes (from Hackage documentation)
+ Test.Tasty.Hedgehog: fromGroup :: Group -> TestTree
Files
- changelog.md +4/−0
- src/Test/Tasty/Hedgehog.hs +11/−0
- tasty-hedgehog.cabal +5/−5
changelog.md view
@@ -1,5 +1,9 @@ # Revision history for tasty-hedgehog +## 1.1.0.0 -- 2021-04-03++* Add fromGroup function+ ## 1.0.1.0 -- 2021-01-25 * Automatically enable or disable colour, based on the same criteria
src/Test/Tasty/Hedgehog.hs view
@@ -12,6 +12,7 @@ {-# LANGUAGE GeneralizedNewtypeDeriving #-} module Test.Tasty.Hedgehog ( testProperty+ , fromGroup -- * Options you can pass in via tasty , HedgehogReplay(..) , HedgehogShowReplay(..)@@ -24,6 +25,7 @@ import Data.Maybe (fromMaybe) import Data.Typeable +import qualified Test.Tasty as T import qualified Test.Tasty.Providers as T import Test.Tasty.Options @@ -40,6 +42,15 @@ -- | Create a 'T.TestTree' from a Hedgehog 'Property'. testProperty :: T.TestName -> Property -> T.TestTree testProperty name prop = T.singleTest name (HP name prop)++-- | Create a 'T.TestTree' from a Hedgehog 'Group'.+fromGroup :: Group -> T.TestTree+fromGroup group =+ T.testGroup (unGroupName $ groupName group) $+ map mkTestTree (groupProperties group)+ where+ mkTestTree :: (PropertyName, Property) -> T.TestTree+ mkTestTree (propName, prop) = testProperty (unPropertyName propName) prop -- | The replay token to use for replaying a previous test run newtype HedgehogReplay = HedgehogReplay (Maybe (Size, Seed))
tasty-hedgehog.cabal view
@@ -1,5 +1,5 @@ name: tasty-hedgehog-version: 1.0.1.0+version: 1.1.0.0 license: BSD3 license-file: LICENCE author: Dave Laing@@ -21,10 +21,10 @@ library exposed-modules: Test.Tasty.Hedgehog- build-depends: base >= 4.8 && <4.15+ build-depends: base >= 4.8 && <4.16 , tagged >= 0.8 && < 0.9 , tasty >= 0.11 && < 1.5- , hedgehog >= 1.0.2 && < 1.0.5+ , hedgehog >= 1.0.2 && < 1.0.6 hs-source-dirs: src ghc-options: -Wall default-language: Haskell2010@@ -33,10 +33,10 @@ type: exitcode-stdio-1.0 main-is: Main.hs hs-source-dirs: test- build-depends: base >= 4.8 && <4.15+ build-depends: base >= 4.8 && <4.16 , tasty >= 0.11 && < 1.5 , tasty-expected-failure >= 0.11 && < 0.13- , hedgehog >= 1.0.2 && < 1.0.5+ , hedgehog >= 1.0.2 && < 1.0.6 , tasty-hedgehog ghc-options: -Wall default-language: Haskell2010