Skip to content

Commit

Permalink
README: add a migration guide from test-framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed Mar 1, 2025
1 parent 4301f5c commit be8061d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,22 @@ Use `sequentialTestGroup` to mitigate these problems.
[Known
Issues](https://github.com/git-for-windows/build-extra/blob/main/ReleaseNotes.md#known-issues).

## Migration from `test-framework`

`tasty` architecture is quite similar to `test-framework`, so a few mechanical changes are usually enough to migrate:

* Replace packages in `build-depends`:
* `test-framework` -> `tasty`,
* `test-framework-hunit` -> `tasty-hunit`,
* `test-framework-quickcheck2` -> `tasty-quickcheck`.
* Replace module imports:
* `Test.Framework` -> `Test.Tasty`,
* `Test.Framework.Providers.HUnit` -> `Test.Tasty.HUnit`,
* `Test.Framework.Providers.QuickCheck2` -> `Test.Tasty.QuickCheck`.
* Replace in type signatures:
* `Test` -> `TestTree`.
* Replace `defaultMain tests` with `defaultMain (testGroup "All" tests)`.

## Press

Blog posts and other publications related to tasty. If you wrote or just found
Expand Down

0 comments on commit be8061d

Please sign in to comment.