README.md
# ExGuard
[](https://travis-ci.org/slashmili/ex_guard)
[](https://beta.hexfaktor.org/github/slashmili/ex_guard)
**NOTE: This module is experimental!**
## Installation
1. Add ex_guard to your list of dependencies in `mix.exs`:
def deps do
[{:ex_guard, git: "https://github.com/slashmili/ex_guard.git", only: :dev}]
end
2. Create a file named `ExGuardfile` in your root directory:
```elixir
use ExGuard.Config
guard("unit-test")
|> command("mix test --color")
|> watch(~r{\.(erl|ex|exs|eex|xrl|yrl)\z}i)
```
3. run `mix guard` as soon as you change any file with above pattern, the test gets executed