A rebar3 plugin for auto running compile on source file change reloading modules in the shell.
Version: 1.1.0
On Linux you need to install inotify-tools.
Add the plugin only to your user local rebar config in ~/.config/rebar3/rebar.config
:
{plugins, [rebar3_autotdd]}.
If you add it to your project rebar.config, it will get unloaded each time compilation occurs therefore breaking it.
Then run
$ rebar3 compile
Then just call your plugin directly in an existing application:
$ rebar3 autotdd
Verifying dependencies...
Compiling relx
Compiling rebar3_autotdd
Verifying dependencies...
Compiling relx
1>
Autotdd
Reload: couchdb_databases_tests.erl
Autotdd
Recompiling
Verifying dependencies...
Compiling couchdb
Autotdd
Running Eunit
Verifying dependencies...
Compiling couchdb
Performing EUnit tests...
................
Finished in 5.099 seconds
16 tests, 0 failures
Autotdd
PASSED
Waiting for changes ...