Fork me on GitHub

EMOCK

Mocking

If you have some code under test that expect to call a gen_server to get some values, this project allow you to create a mocked gen_server quickly and succinctly.

Emock supports two kinds of mocks, stateless and statefull mocks. Stateful ones have an internal state so that they can do more complex mocking. But you dont really want to introduce more logic in a test and end up testing the testing logic more than the code under test.

Authors

Christian Sunesson.

Source

Find emock at github.

Documentation

Not much but some emock documentation at github.

See also

My github page.

License

The Erlang Public License, its similar to the Mozilla public license in terms. You should find it and read it if you’re worried about these things.