packages feed

sydtest 0.12.0.1 → 0.13.0.0

raw patch · 6 files changed

+25/−7 lines, 6 files

Files

CHANGELOG.md view
@@ -1,5 +1,14 @@ # Changelog +## [0.13.0.0] - 2022-10-14++### Changed++* Changed the default of --golden-start to false.+  If this causes any of your tests to fail, that means that you are not+  correctly shipping the golden results along with your test suite.+* Fixed a typo in the parallelisation warning that you see when you run sydtest in parallel with only one core..+ ## [0.12.0.1] - 2022-10-06  * Released the changelog with a date.
src/Test/Syd/Run.hs view
@@ -397,8 +397,15 @@       testRunSettingMaxSuccess = maxSuccess stdArgs,       testRunSettingMaxSize = maxSize stdArgs,       testRunSettingMaxDiscardRatio = maxDiscardRatio stdArgs,-      testRunSettingMaxShrinks = 100, -- This is different from what quickcheck does so that test suites are more likely to finish-      testRunSettingGoldenStart = True,+      testRunSettingMaxShrinks =+        -- This is different from what quickcheck does so that test suites are more likely to finish+        100,+      testRunSettingGoldenStart =+        -- It's important that this is False+        -- If it's true by default, then we wouldn't notice it when golden+        -- results are ccidentally not shipped along with the test suite.+        -- In such a case, golden tests could never fail.+        False,       testRunSettingGoldenReset = False     } 
src/Test/Syd/Runner.hs view
@@ -63,7 +63,7 @@             )             [ chunk "WARNING: Only one CPU core detected, make sure to compile your test suite with these ghc options:",               chunk "         -threaded -rtsopts -with-rtsopts=-N",-              chunk "         (This is important for correctness as well as speed, as a parallell test suite can find thread safety problems.)"+              chunk "         (This is important for correctness as well as speed, as a parallel test suite can find thread safety problems.)"             ]         runSpecForestInterleavedWithOutputAsynchronously settings i specForest       Asynchronous i ->
sydtest.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           sydtest-version:        0.12.0.1+version:        0.13.0.0 synopsis:       A modern testing framework for Haskell with good defaults and advanced testing features. description:    A modern testing framework for Haskell with good defaults and advanced testing features. Sydtest aims to make the common easy and the hard possible. See https://github.com/NorfairKing/sydtest#readme for more information. category:       Testing
test_resources/defaultSettings-show.golden view
@@ -6,7 +6,7 @@   , settingMaxSize = 100   , settingMaxDiscard = 10   , settingMaxShrinks = 100-  , settingGoldenStart = True+  , settingGoldenStart = False   , settingGoldenReset = False   , settingColour = Nothing   , settingFilter = Nothing
test_resources/output-test.txt view
@@ -121,8 +121,10 @@     Retries: 3 (likely not flaky)   [31m✗ [m[31mdoes not fail the suite when an exception happens while producing[m               [32m      0.00 ms[m     Retries: 3 (likely not flaky)+    [31mGolden output not found[m   [31m✗ [m[31mdoes not fail the suite when an exception happens while writing[m                 [32m      0.00 ms[m     Retries: 3 (likely not flaky)+    [31mGolden output not found[m   [31m✗ [m[31mdoes not fail the suite when an exception happens while checking for equality[m   [32m      0.00 ms[m     Retries: 3 (likely not flaky)   [33moutputResultForest[m@@ -642,12 +644,12 @@   [36m  output-test/Spec.hs:111[m   [31m✗ [m[31m41 [m[31mGolden.does not fail the suite when an exception happens while producing[m        Retries: 3 (likely not flaky)-       ExitFailure 1+       [31mGolden output not found[m      [36m  output-test/Spec.hs:119[m   [31m✗ [m[31m42 [m[31mGolden.does not fail the suite when an exception happens while writing[m        Retries: 3 (likely not flaky)-       ExitFailure 1+       [31mGolden output not found[m      [36m  output-test/Spec.hs:126[m   [31m✗ [m[31m43 [m[31mGolden.does not fail the suite when an exception happens while checking for equality[m