Just save your code to recompile and test it.
Piece o cake!
Simply add it to your dependencies in mix.exs:
def deps do
[
{:shake_n_bake, "~> 0.1.0", only: :dev}
]
end
In your config/config.exs
file, add:
config :shake_n_bake,
run_tests: true,
test_cmd: "mix test",
paths: ['./lib']
The following configurations are available:
run_tests
- Set totrue
to run your tests on recompile.test_cmd
- Shell command to use for tests.paths
- List of paths to check for modified files in