ExGuard
ExGuard is a mix command to handle events on file system modifications, ExGuard heavily borrowed ideas/art works from Guard
Usage
Add ex_guard to your list of dependencies in
mix.exs:def deps do
[{:ex_guard, "~> 0.10.0", only: :dev}]end
Create a file named
ExGuardfilein your root application directory:use ExGuard.Config guard("unit-test") |> command("mix test --color") |> watch(~r{\.(erl|ex|exs|eex|xrl|yrl)\z}i)Look at ExGuardfile for more fine-grained config
run
mix guardas soon as you change any file with above pattern, the test gets executed