tasty-hedgehog 1.0.0.1 → 1.0.0.2
raw patch · 3 files changed
+22/−8 lines, 3 filesdep ~basedep ~hedgehogdep ~tastyPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, hedgehog, tasty, tasty-expected-failure
API changes (from Hackage documentation)
Files
- changelog.md +4/−0
- src/Test/Tasty/Hedgehog.hs +12/−2
- tasty-hedgehog.cabal +6/−6
changelog.md view
@@ -1,5 +1,9 @@ # Revision history for tasty-hedgehog +## 1.0.0.2 -- 2020-01-16++* Upgrade to `hedgehog-1.0.2`+ ## 1.0.0.1 -- 2019-05-22 * Fixed test result reporting to made plain hedgehog's messages (fixes #30)
src/Test/Tasty/Hedgehog.hs view
@@ -28,6 +28,7 @@ import Test.Tasty.Options import Hedgehog+import Hedgehog.Internal.Config (UseColor(DisableColor)) import Hedgehog.Internal.Property import Hedgehog.Internal.Runner as H import Hedgehog.Internal.Report@@ -103,6 +104,15 @@ optionName = return "hedgehog-retries" optionHelp = return "Number of times to re-run a test during shrinking" +propertyTestLimit :: PropertyConfig -> TestLimit+propertyTestLimit =+ let+ getTestLimit (EarlyTermination _ tests) = tests+ getTestLimit (NoEarlyTermination _ tests) = tests+ getTestLimit (NoConfidenceTermination tests) = tests+ in+ getTestLimit . propertyTerminationCriteria+ reportToProgress :: PropertyConfig -> Report Progress -> T.Progress@@ -124,7 +134,7 @@ -> Report Result -> IO String reportOutput showReplay name report = do- s <- renderResult Nothing (Just (PropertyName name)) report+ s <- renderResult DisableColor (Just (PropertyName name)) report pure $ case reportStatus report of Failed fr -> let@@ -161,10 +171,10 @@ HedgehogShrinkRetries mRetries = lookupOption opts config = PropertyConfig- (fromMaybe (propertyTestLimit pConfig) mTests) (fromMaybe (propertyDiscardLimit pConfig) mDiscards) (fromMaybe (propertyShrinkLimit pConfig) mShrinks) (fromMaybe (propertyShrinkRetries pConfig) mRetries)+ (NoConfidenceTermination $ fromMaybe (propertyTestLimit pConfig) mTests) randSeed <- Seed.random let
tasty-hedgehog.cabal view
@@ -1,5 +1,5 @@ name: tasty-hedgehog-version: 1.0.0.1+version: 1.0.0.2 license: BSD3 license-file: LICENCE author: Dave Laing@@ -13,7 +13,7 @@ build-type: Simple extra-source-files: changelog.md cabal-version: >=1.10-tested-with: GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.4+tested-with: GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.1 source-repository head type: git@@ -21,10 +21,10 @@ library exposed-modules: Test.Tasty.Hedgehog- build-depends: base >= 4.8 && <4.13+ build-depends: base >= 4.8 && <4.14 , tagged >= 0.8 && < 0.9 , tasty >= 0.11 && < 1.3- , hedgehog >= 1.0 && < 1.1+ , hedgehog >= 1.0.2 && < 1.0.3 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.13+ build-depends: base >= 4.8 && <4.14 , tasty >= 0.11 && < 1.3 , tasty-expected-failure >= 0.11 && < 0.12- , hedgehog >= 1.0 && < 1.1+ , hedgehog >= 1.0.2 && < 1.0.3 , tasty-hedgehog ghc-options: -Wall default-language: Haskell2010