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

Add mocking support #197

Open
aronisstav opened this issue Feb 19, 2018 · 0 comments
Open

Add mocking support #197

aronisstav opened this issue Feb 19, 2018 · 0 comments
Labels
feature Suggestions for new features or improvements on existing ones.

Comments

@aronisstav
Copy link
Member

aronisstav commented Feb 19, 2018

When applying Concuerror on large software projects it is desirable to be able to use mocks, in order to not modify application code.

Features:

  • have arbitrary code in mocks
  • mock non-exported functions (not important)

Ideas:

  • Use eproxus/meck: rejected, as meck mocks use communication with one gen_server per mocked module, which has further calls to cover (so it cannot easily be instrumented) and introduces ordering/races.
  • Use a new option:
    • Name: mock
    • Arguments:
      • the name of an exported, 0-arity function returning a list of
        • {From :: mfa(), To :: fun()} tuples
@aronisstav aronisstav added feature Suggestions for new features or improvements on existing ones. in progress There is someone currently working on the issue. Should have at least a branch that refers to it. labels Feb 19, 2018
@aronisstav aronisstav removed the in progress There is someone currently working on the issue. Should have at least a branch that refers to it. label Mar 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Suggestions for new features or improvements on existing ones.
Projects
None yet
Development

No branches or pull requests

1 participant