https://github.com/serokell/tasty-hunit-compat
Tasty integration with the existing HUnit package.
https://github.com/serokell/tasty-hunit-compat
haskell hunit tasting tasty
Last synced: 6 months ago
JSON representation
Tasty integration with the existing HUnit package.
- Host: GitHub
- URL: https://github.com/serokell/tasty-hunit-compat
- Owner: serokell
- License: mit
- Created: 2020-11-26T18:01:33.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-20T15:18:53.000Z (9 months ago)
- Last Synced: 2025-05-08T01:47:15.965Z (6 months ago)
- Topics: haskell, hunit, tasting, tasty
- Language: Haskell
- Homepage: https://hackage.haskell.org/package/tasty-hunit-compat
- Size: 32.2 KB
- Stars: 0
- Watchers: 12
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Tasty-hunit-compat

This library implements the integration between [tasty](https://hackage.haskell.org/package/tasty) and [HUnit](https://hackage.haskell.org/package/HUnit) packages.
The way tasty provides this integration is reimplementing HUnit primitives, and this does not work with test suites written with the original HUnit library.
One issue we are aware of is that test failures are treated as plain exceptions, not true failures.
## Build Instructions [↑](#tasty-hunit-compat)
Run `make` to build everything.
## Usage [↑](#tasty-hunit-compat)
Use `testCase` or more advanced primitives to lift HUnit's `Assertion` to tasty's `TestTree`.
Commonly useful methods from `HUnit` are also re-exported.
```haskell
import Test.Tasty (TestTree)
import Test.Tasty.HUnit (testCase, (@?=))
test_Reversals :: [TestTree]
test_Reversals =
[ testCase "Simple case" $
reverse "abc" @?= "cba"
]
```
## Issue Tracker [↑](#tasty-hunit-compat)
We use GitHub issues as our issue tracker.
You can login using your GitHub account to leave a comment or create a new issue.
## For Contributors [↑](#tasty-hunit-compat)
Please see [CONTRIBUTING.md](.github/CONTRIBUTING.md) for more information.
## About Serokell [↑](#tasty-hunit-compat)
`tasty-hunit-compat` is maintained and funded with ❤️ by [Serokell](https://serokell.io/).
The names and logo for Serokell are trademark of Serokell OÜ.
We love open source software! See [our other projects](https://serokell.io/community?utm_source=github) or [hire us](https://serokell.io/contacts?utm_source=github) to design, develop and grow your idea!