cabal-detailed-quickcheck 0.1.1.0 → 0.1.1.1
raw patch · 4 files changed
+17/−4 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- README.md +7/−0
- cabal-detailed-quickcheck.cabal +3/−2
- lib/Distribution/TestSuite/QuickCheck.hs +3/−2
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for cabal-detailed-quickcheck +## 0.1.1.1 — 2022-04-25++* Improve packaging+ ## 0.1.1.0 — 2022-04-24 * Improved documentation.
+ README.md view
@@ -0,0 +1,7 @@+# Turn QuickCheck properties into tests for Cabal++This is a library for using [QuickCheck](https://hackage.haskell.org/package/QuickCheck) properties in Cabal’s `detailed-0.9` test interface ([docs](https://cabal.readthedocs.io/en/3.6/cabal-package.html#example-package-using-detailed-0-9-interface)).++You can construct a `PropertyTest` for your property and call `getPropertyTest` on it. For more details, see the Haddock documentation.++This project is developed on GitHub: <https://github.com/schuelermine/cabal-detailed-quickcheck>
cabal-detailed-quickcheck.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: cabal-detailed-quickcheck-version: 0.1.1.0+version: 0.1.1.1 synopsis: QuickCheck for Cabal tests description: Turn QuickCheck properties into detailed Cabal tests homepage: https://github.com/schuelermine/cabal-detailed-quickcheck@@ -12,6 +12,7 @@ copyright: Ⓒ Anselm Schüler 2022 category: Testing extra-source-files: CHANGELOG.md+ README.md library exposed-modules: Distribution.TestSuite.QuickCheck@@ -29,4 +30,4 @@ source-repository this type: git location: https://github.com/schuelermine/cabal-detailed-quickcheck.git- tag: 0.1.1.0+ tag: 0.1.1.1
lib/Distribution/TestSuite/QuickCheck.hs view
@@ -75,6 +75,7 @@ { -- | Verbosity for tests. See 'QC.verbose' and 'QC.chatty'. verbosity :: Verbosity, -- TODO Consider joining verboseShrinking back into verbosity+ -- | Whether QuickCheck should print shrinks. See 'QC.verboseShrinking'. verboseShrinking :: Bool, -- | Maximum discarded tests per successful test. See 'QC.maxDiscardRatio'.@@ -287,8 +288,8 @@ getPropertyTestWithUsing originalArgs PropertyTest {..} = let withArgs args = T.TestInstance- -- TODO Consider using 'T.Progress' to allow intermediate results- { run = do+ { -- TODO Consider using 'T.Progress' to allow intermediate results+ run = do result <- qcTestArgs args (property args) let resultStr = "\n" ++ show result return $ T.Finished case result of