mix_test_watch
ex_machina
mix_test_watch | ex_machina | |
---|---|---|
3 | 2 | |
891 | 1,872 | |
- | 0.2% | |
5.0 | 6.8 | |
2 months ago | 4 months ago | |
Elixir | Elixir | |
MIT License | MIT License |
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.
mix_test_watch
-
Run tests automatically on save
mix_test_watch
-
What's your favorite lesser known package?
I really love mix test.watch - https://github.com/lpil/mix-test.watch
-
Execute and Watch Elixir tests from iex.
A way to do it in Elixir is just to use the fswatch as presented in Elixir Mix Test documentation, or using the excellent mix.test-watch library, but them don't work well with iex, the Elixir REPL, so why not do something else.
ex_machina
-
Test Data Libraries for Elixir
The factory library ExMachina created by Thoughbot uses function names and generates an atom used to call factories. For example:
-
How to write test cases for databse related functions
The well known FactoryBot (FactoryGirl) from rails has a pretty good equivalent in Phoenix as ExMachina (https://github.com/thoughtbot/ex_machina) and does the job really well (thoughtbot is a pretty good and stable contributor too, so a nice Omakase plug-in!)
What are some alternatives?
Quixir - Property-based testing for Elixir
faker - Faker is a pure Elixir library for generating fake data.
Stubr - Stubr is a set of functions helping people to create stubs and spies in Elixir.
factory_girl_elixir - Minimal implementation of Ruby's factory_girl in Elixir.
efrisby - A REST API testing framework for erlang
blacksmith - Data generation framework for Elixir
power_assert - Power Assert in Elixir. Shows evaluation results each expression.
FakerElixir - [unmaintained] FakerElixir generates fake data for you.
ex_parameterized - This library support parameterized test with test_with_params macro.
espec - Elixir Behaviour Driven Development
mixunit - an `eunit` task for mix based projects
espec_phoenix - ESpec for Phoenix web framework.