faker alternatives and similar packages
Based on the "Testing" category.
Alternatively, view faker alternatives based on common mentions on social networks and blogs.
-
bypass
Bypass provides a quick way to create a custom plug that can be put in place instead of an actual HTTP server to return prebaked responses to client requests. -
amrita
A polite, well mannered and thoroughly upstanding testing framework for Elixir -
power_assert
Power Assert in Elixir. Shows evaluation results each expression. -
shouldi
Elixir testing libraries with nested contexts, superior readability, and ease of use -
katt
KATT (Klarna API Testing Tool) is an HTTP-based API testing tool for Erlang. -
FakeServer
FakeServer integrates with ExUnit to make external APIs testing simpler -
Stubr
Stubr is a set of functions helping people to create stubs and spies in Elixir. -
mix_test_interactive
Interactive watch mode for Elixir's mix test. https://hexdocs.pm/mix_test_interactive/ -
mecks_unit
A simple Elixir package to elegantly mock module functions within (asynchronous) ExUnit tests using Erlang's :meck library -
test_selector
Elixir library to help selecting the right elements in your tests. -
factory_girl_elixir
Minimal implementation of Ruby's factory_girl in Elixir. -
toxiproxy_ex
ToxiproxyEx is an Elixir API client for the resilience testing tool Toxiproxy. -
ex_parameterized
This library support parameterized test with test_with_params macro. -
cobertura_cover
Output test coverage information in Cobertura-compatible format -
ex_unit_fixtures
A library for defining modular dependencies (fixtures) for ExUnit tests. -
ElixirMock
Creates clean, concurrent, inspectable mocks from elixir modules
Clean code begins in your IDE with SonarLint
Do you think we are missing an alternative of faker or a related project?
Popular Comparisons
README
Faker
Faker is a pure Elixir library for generating fake data.
Quickstart
add
{:faker, "~> 0.16"}
to your deps inmix.exs
:defp deps do [{:faker, "~> 0.16", only: :test}] end
run:
mix deps.get
add
Faker.start()
totest/test_helper.exs
:ExUnit.start() Faker.start()
jump to usage examples.
Requirements
- OTP 19+
- Elixir 1.6+
Usage
See documentation and usage examples.
Troubleshooting
If you get a message like the one below when you call
Faker.Address.city/0
, you need to add:faker
to your application's mix file, in theapplications
function, as above.** (FunctionClauseError) no function clause matching in Faker.Address.city_count/1 lib/faker/address.ex:48: Faker.Address.city_count(nil) lib/faker/address.ex:41: Faker.Address.city/0
Tools
Faker was designed as a lightweight library, that's why it can be easily used with other tools.
Templating
You can build templates for testing purposes with the Blacksmith project. See the Blacksmith readme for details.
Team
Faker was originally written by Igor Kapkov.
Current list of maintainers:
Contributing
Do you want to become a maintainer?
See our CONTRIBUTING.md and start contributing today. We usually elect new maintainers based on contributions.
Thanks
License
Released under the MIT License.
*Note that all licence references and agreements mentioned in the faker README section above
are relevant to that project's source code only.