Changelog for sydtest-0.15.1.3
Changelog
[0.15.1.3] - 2024-07-20
- Fix race condition in the asynchronous runner
[0.15.1.2] - 2024-07-18
- Fix parsing filter flags so it becomes easy to select tests with spaces in their description
[0.15.1.1] - 2023-10-04
- Compatibility with
optparse-applicative > 0.18. - Compatibility with
GHC >= 9.7. - Refactored out
fast-myers-diffinto its own package.
[0.15.1.0] - 2023-07-28
setupAroundWithAll: so it's easier to use multiple outer resources to provide an inner resource, without the need of extra type annotation.
[0.15.0.0] - 2023-04-08
DefBeforeAllWithNode: so thatbeforeAllWithcan be defined in terms of it and have better parallelism properties.DefSetupNode: so thatbeforeAll_can be defined in terms of it and have better parallelism properties.
[0.14.0.0] - 2023-04-05
- Profiling mode, for figuring out why your test suite is slow.
Use
--profileto turn it on. - An improved asynchronous test runner.
- Made
--debugimply--retries 0
[0.13.0.4] - 2023-03-31
Added
- Allow supplying multiple
--filter/--matchflags. - Add short names
-mand-ffor the filter flag options.
[0.13.0.3] - 2023-03-27
Added
- Compatibility with
mtl-2.3
[0.13.0.2] - 2023-03-24
Changed
- Improved white space diffing
[0.13.0.1] - 2023-01-13
Changed
- Replaced the diffing algorithm by a custom one.
This has sped up diffing at least 100x and let us get rid of the
Diffandsplitdependencies. - Reworded 'likely not flaky' to 'does not look flaky' to be more technically accurate as we know nothing about the likelihood of flakiness.
[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.
[0.12.0.0] - 2022-10-06
Added
- Automatic flakiness diagnostics, see the
READMEThis adds thepotentiallyFlakyandpotentiallyFlakyWithfunctions. Test.Sydnow also exportspPrint.- The
modifyRetries,withoutRetries,withRetriesfunctions, to allow configuration of the number of retries independently of whether flakiness is allowed. - The
TestRunReporttype, so that aResultForestcontains information about all runs of a test instead of only the last. - Expectation of failure.
This adds the
expectFailing,expectPassing, andwithExpectationModefunctions.
Changed
- Fixed: Fail-fast now works correctly together with fail-on-flaky
- Fixed that flags with a
no-prefix did not parse correctly and could therefore not be used. - The
FlakinessModetype no longer contains a number of retries. The number of retries is now configured separately. - Fixed that
xdescribewould only result in one pending test instead of the same number of tests as are marked as pending. - Fixed that
specifyandpropwould show a callstack from insidesydtestinstead of from where you used them. - Sydtest now sets the global pseudorandomness seed in the random library to the given seed using
setStdGenfor extra reproducability.
Removed
[0.11.0.2] - 2022-09-7
Changed
- Added the
shouldMatchListexpectation, corresponding the one fromhspec-expectations.
[0.11.0.1] - 2022-06-28
Changed
- Made the type of
setupAroundmore general.
[0.11.0.0] - 2022-06-28
Changed
printOutputSpecForestnow usesData.Text.Lazy.IOto output the report, so it will try to respect the system's locale.renderResultReportnow outputs aText.Builderinstead of aByteString.Builderand a newline at the end.
[0.10.1.0] - 2022-06-04
Changed
- Fixed a bug where multiple layers of contextual failures were not unwrapped and shown correctly.
- Made 'Assertion' fields strict.
[0.10.0.0] - 2022-04-28
Added
- Allow supplying filters without a flag, so
helloinstead of--filter helloor--match hello. - Simplified the way exceptions work to allow for attaching context to any failure instead of only
Assertions.
[0.9.0.0] - 2022-04-13
Added
- Optional type-safe progress reporting for property tests.
[0.8.0.1] - 2022-02-11
Changed
- Fixed property tests without labels still showing labels in the output.
[0.8.0.0] - 2022-02-11
Changed
- The
TestDefMnow contains aTestDefEnvwhich also contains the test description path, along withTestRunSettings. - Removed the
MonadState ()instance ofTestDefM. It was just silly. - Changed the internals of
TestDefMto useReaderTand a strictWriterTinstead ofRWST. - Renamed
wrapRWSTtowrapForest. - Fixed the property label output to use the right total.
- Moved
filterTestForestandrandomiseTestForestfromTest.Syd.TestDefMtoTest.Syd.SpecDef, whereSpecDefForestis defined.
Added
getTestDescriptionPathto get the test description path upwards from inside a test definition.
[0.7.0.1] - 2021-12-23
Changed
- Fixed
shouldStartWithto test on the prefix rather then infix
[0.7.0.0] - 2021-12-15
Added
- Flaky tests now show up in the failure report when
--fail-on-flakyis active. - Flakiness information like the number of retries is now shown in the failure report for real (non-flaky) failures.
Changed
- Simplified the way settings are passed around.
[0.6.1.0] - 2021-12-10
Added
- The
flakyWithcombinator, which is likeflaky, but lets you also add a message to your team.
[0.6.0.0] - 2021-11-12
Changed
- Started using
autodocodecinstead ofyamlparse-applicative.
[0.5.0.0] - 2021-11-12
Added
- The flakiness combinators (
flaky,notFlaky, andwithFlakiness) to mark a test group as potentially flaky. - The
--fail-on-flakyflag to falsify flakiness. - Experimental Windows support
Changed
- Fixed the interpretation of
max-sizevsmax-successin the configuration file and environment parsing.
[0.4.1.0] - 2021-10-10
Added
- The
--random-seedoption to use random seeds instead of the fixed seed that is used by default.
[0.4.0.0] - 2021-09-02
Added
- The
--debugoption.
Changed
- Redid the entire flags parsing.
This should be backward compatible, and result in a nicer
--helpoverview.
[0.3.0.3] - 2021-08-07
Changed
- Show the total number of examples in the output as well
[0.3.0.2] - 2021-07-06
Changed
- Accept options using American spelling as well.
[0.3.0.1] - 2021-06-20
Changed
- Turned off shrinking when using
aroundand friends. See https://github.com/nick8325/quickcheck/issues/331.
[0.3.0.0] - 2021-06-17
Added
- An
IsTest (ReaderT env IO a)instance.
Deleted
Test.Syd.Def.Env, which containedeitandwithTestEnvNow thatReaderT env IO ais also inIsTest, you can just useitfor this.
[0.2.0.0] - 2021-06-03
Added
beforeWithandbeforeWith'scenarioDirandscenarioDirRecurfor scenario testing.bracketSetupFunc
Changed
- The
SetupFunchas been simplified to only take one type parameter.
Deleted
composeSetupFunc, now obsolete: use<=<instead.connectSetupFunc, now obsolete: use>=>instead.wrapSetupFunc, now entirely obsolete.unwrapSetupFunc, now entirely obsolete.makeSimpleSetupFunc, now obsolete: Use theSetupFuncconstructor directly.useSimpleSetupFunc, now obsolete: Use theunSetupFuncfunction directly.
[0.1.0.0] - 2021-03-07
Various fixes
[0.0.0.0] - 2020-12-26
Initial release