sydtest

A modern testing framework for Haskell with good defaults and advanced testing features.

https://github.com/NorfairKing/sydtest#readme

Version on this page:0.5.0.0
LTS Haskell 22.14:0.15.1.1
Stackage Nightly 2024-03-28:0.15.1.1
Latest on Hackage:0.15.1.1

See all snapshots sydtest appears in

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.

Changes

Changelog

[0.5.0.0] - 2021-11-12

Added

  • The flakiness combinators (flaky, notFlaky, and withFlakiness) to mark a test group as potentially flaky.
  • The --fail-on-flaky flag to falsify flakiness.
  • Experimental Windows support

Changed

  • Fixed the interpretation of max-size vs max-success in the configuration file and environment parsing.

[0.4.1.0] - 2021-10-10

Added

  • The --random-seed option to use random seeds instead of the fixed seed that is used by default.

[0.4.0.0] - 2021-09-02

Added

  • The --debug option.

Changed

  • Redid the entire flags parsing. This should be backward compatible, and result in a nicer --help overview.

[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

[0.3.0.0] - 2021-06-17

Added

  • An IsTest (ReaderT env IO a) instance.

Deleted

  • Test.Syd.Def.Env, which contained eit and withTestEnv Now that ReaderT env IO a is also in IsTest, you can just use it for this.

[0.2.0.0] - 2021-06-03

Added

  • beforeWith and beforeWith'
  • scenarioDir and scenarioDirRecur for scenario testing.
  • bracketSetupFunc

Changed

  • The SetupFunc has 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 the SetupFunc constructor directly.
  • useSimpleSetupFunc, now obsolete: Use the unSetupFunc function directly.

[0.1.0.0] - 2021-03-07

Various fixes

[0.0.0.0] - 2020-12-26

Initial release