meck
proper
Our great sponsors
meck | proper | |
---|---|---|
1 | 3 | |
809 | 878 | |
- | 0.1% | |
4.9 | 3.1 | |
2 months ago | 9 months ago | |
Erlang | Erlang | |
Apache License 2.0 | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
meck
-
An Introduction to Mocking Tools for Elixir
Mock is the first result you will see when searching “Elixir Mock”, and is a wrapper around Erlang’s meck that provides easy mocking macros for Elixir.
proper
-
How programmers make sure that their software is correct
> There are generally two main categories of tests. There are unit tests [and] Integration tests
Later on there is a mention of fuzzing. However, there is something better called property tests. Where the on failure there is automatic "shrinking" of input complexity to find a minimally failing test scenario.
For Erlang and Elixir I recommend https://propertesting.com/ book and the PropEr test framework https://github.com/proper-testing/proper.
As an example, here is the use of an advanced feature called targeted property based testing: https://proper-testing.github.io/tutorials/PropEr_testing_wi... used to test a labyrinth.
-
Laura Castro on Property-Based Testing in Elixir
[1] https://proper-testing.github.io/
What are some alternatives?
mock - Mocking library for Elixir language
StreamData - Data generation and property-based testing for Elixir. 🔮
mox - Mocks and explicit contracts in Elixir
espec - Elixir Behaviour Driven Development
hound - Elixir library for writing integration tests and browser automation
Quixir - Property-based testing for Elixir
ecto_it - Ecto plugin with default configuration for repos for testing different ecto plugins with databases
espec_phoenix - ESpec for Phoenix web framework.
ElixirMock - Creates clean, concurrent, inspectable mocks from elixir modules
Stubr - Stubr is a set of functions helping people to create stubs and spies in Elixir.
katt - KATT (Klarna API Testing Tool) is an HTTP-based API testing tool for Erlang.