Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HMock for plain old Haskell modules #5

Open
cdsmith opened this issue Jun 30, 2021 · 0 comments
Open

HMock for plain old Haskell modules #5

cdsmith opened this issue Jun 30, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@cdsmith
Copy link
Owner

cdsmith commented Jun 30, 2021

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 implementation by using build-system tricks like backpack or CPP when compiling the system under test.

This requires a global set of expectations rather than tracking expectations in a monad wrapper. We'd also need a way to reset those global expectations before and after a test. They should also have a version number, so that stray threads from previous tests can just fail instead of making a mess in the current test.

@cdsmith cdsmith added the enhancement New feature or request label Jun 30, 2021
@cdsmith cdsmith added the help wanted Extra attention is needed label Jul 19, 2021
@cdsmith cdsmith removed the help wanted Extra attention is needed label Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant