[](https://hex.pm/packages/maxo_test_iex)
[](https://hexdocs.pm/maxo_test_iex/)
[](https://hex.pm/packages/maxo_test_iex)
[](https://github.com/maxohq/maxo_test_iex/blob/main/LICENSE)
[](https://github.com/maxohq/maxo_test_iex/actions/workflows/ci.yml)
# TestIex
## Usage
```elixir
$ MIX_ENV=test iex -S mix
# Run all tests
iex> TestIex.run
# Run all matching files
iex> TestIex.run("word")
# Run test on line 45 for the first matching file
iex> TestIex.run("word", 45)
# Run test on line 45 for the first matching file
iex> TestIex.run("users_test.exs:45")
# Run test on line 45 for the first matching file
iex> TestIex.run("users:45")
# Watching on file changes and re-running tests.
# Currently only .ex / .exs files in `lib` or `test` folders trigger a re-run.
iex> TestIex.watch("users:45")
# Reset watching
iex> TestIex.unwatch()
```
## Configuration
```elixir
# in config/config.exs
config :maxo_test_iex, event_dedup_timeout: 2000
```
## Installation
```elixir
def deps do
[
{:maxo_test_iex, "~> 0.1", only: [:test]},
]
end
```