HMock icon indicating copy to clipboard operation
HMock copied to clipboard

Mock framework for testing in Haskell

Results 11 HMock issues
Sort by recently updated
recently updated
newest added

Hi, thanks for this library, it is exactly what I was looking for! When I was mocking effectful code in the past I ended up manually writing [a lot of...

documentation

QuasiMock is the module that mocks TH so that Template Haskell code can be run at runtime. This makes it possible to test error cases, and also measure test coverage...

enhancement
good first issue

Migrated from TODO file. It would be nice to use HMock to generate an implementation of an API in a plain Haskell module. The user would then select the appropriate...

enhancement

Migrated from TODO file. There are a lot of libraries in Haskell that can be used to define an API to some external system. Ideally, there would be a way...

enhancement
help wanted

There are two different approaches to modern mocking. Libraries like gMock are plan-and-test, where you first declare an execution plan, then run the test and the execution plan is verified...

enhancement

`servant-client` generates actions that run directly in a ClientM monad. There should be some kind of story about the right way to integrate `servant-client` with HMock. One idea is to...

enhancement
help wanted

See #4. Haxl isn't exactly an effect system, but it's a technology that can be used to define and use APIs for talking to external systems. That makes it a...

enhancement
help wanted

I would love to extend HMock with some mechanism for running record/replay tests. These are tests that are written as integration tests, but that you want to be able to...

enhancement

In this example I can see that `PollChat_` expectation constructor accepts `Predicate`, in this case `anything`. Is there the good way to use IO-like expressions (with side effects) to create...

I've been porting a codebase from monad-mock where we've been using the `MonadTransControl` instance. That's not available for HMock. Currently I've got an orphan instance of it that's definitely not...