A flexible Elixir Mix test runner. (>= Elixir 1.7)
Start your IEx console in test mode:
$ MIX_ENV=test iex -S mix
Now we can start running tests depending on our desires. First run with a fresh Erlang VM will run all tests to load the modules into memory, this happens implicitly.
Grep for file names:
iex> Flexi.filematch("")
Grep for test names:
iex> Flexi.namematch("")
Grep for test module names:
iex> Flexi.modulematch("")
Show current filters for ExUnit (convenience function):
iex> Flexi.config()
- Elixir 1.7-dev after Introducing :only_test_ids as options for ExUnit
If available in Hex, the package can be installed
by adding flexi
to your list of dependencies in mix.exs
:
def deps do
[
{:flexi, "~> 0.4", only: [:dev, :test]}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/flexi.