tasty-hunit-compat: Integration of `HUnit` with `tasty`.

[ library, mpl, testing ] [ Propose Tags ] [ Report a vulnerability ]

Implements the proper integration between existing HUnit package and tasty framework. The existing solution in tasty defines its own primitives that are not compatible with HUnit.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0, 0.2, 0.2.0.1
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5), HUnit (<1.7), tasty (<1.5), tasty-hunit (<0.11) [details]
License MPL-2.0
Copyright 2020 Tocqueville Group
Author Serokell
Maintainer Serokell <hi@serokell.io>
Category Testing
Home page https://github.com/serokell/tasty-hunit-compat#readme
Bug tracker https://github.com/serokell/tasty-hunit-compat/issues
Source repo head: git clone https://github.com/serokell/tasty-hunit-compat
Uploaded by martoon at 2020-12-19T01:19:04Z
Distributions NixOS:0.2.0.1
Reverse Dependencies 2 direct, 4 indirect [details]
Downloads 1226 total (12 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-12-19 [all 1 reports]

Readme for tasty-hunit-compat-0.2.0.1

[back to package description]

Tasty-hunit-compat

Build status

This library implements the integration between tasty and 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

Run make to build everything.

Usage

Use testCase or more advanced primitives to lift HUnit's Assertion to tasty's TestTree.

Commonly useful methods from HUnit are also re-exported.

import Test.Tasty (TestTree)
import Test.Tasty.HUnit (testCase, (@?=))

test_Reversals :: [TestTree]
test_Reversals =
  [ testCase "Simple case" $
      reverse "abc" @?= "cba"
  ]

Issue Tracker

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

Please see CONTRIBUTING.md for more information.

About Serokell

tasty-hunit-compat is maintained and funded with ❤️ by Serokell. The names and logo for Serokell are trademark of Serokell OÜ.

We love open source software! See our other projects or hire us to design, develop and grow your idea!