HMock: A flexible mock framework for testing effectful code.

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

HMock is a flexible mock framework for testing effectful code in Haskell. Tests can set up expectations about actions that can or should be performed and their results, and then verify those expectations when the test is complete.

For more information, see the module documentation for Test.HMock.

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.2.0.0, 0.3.0.0, 0.4.0.0, 0.5.0.0, 0.5.1.0, 0.5.1.2
Change log CHANGELOG.md
Dependencies base (>=4.11.0 && <4.16), constraints (>=0.13 && <0.14), containers (>=0.6.2 && <0.7), data-default (>=0.7.1 && <0.8), exceptions (>=0.10.4 && <0.11), extra (>=1.7.9 && <1.8), monad-control (>=1.0.2 && <1.1), mono-traversable (>=1.0.15 && <1.1), mtl (>=2.2.2 && <2.3), regex-tdfa (>=1.3.1 && <1.4), syb (>=0.7.2 && <0.8), template-haskell (>=2.13.0 && <2.18), transformers-base (>=0.4.5 && <0.5), unliftio (>=0.2.18 && <0.3) [details]
Tested with ghc ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.4 || ==9.0.1
License BSD-3-Clause
Author Chris Smith <cdsmith@gmail.com>
Maintainer Chris Smith <cdsmith@gmail.com>
Category Testing
Home page https://github.com/cdsmith/HMock
Bug tracker https://github.com/cdsmith/HMock/issues
Source repo head: git clone git://github.com/cdsmith/HMock.git
Uploaded by ChrisSmith at 2021-06-20T17:03:02Z
Distributions LTSHaskell:0.5.1.2, NixOS:0.5.1.2, Stackage:0.5.1.2
Downloads 1797 total (53 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-06-21 [all 1 reports]