Skip to content

Latest commit

 

History

History
78 lines (47 loc) · 1.37 KB

README.md

File metadata and controls

78 lines (47 loc) · 1.37 KB

rebar3_autotdd

Hex pm License

A rebar3 plugin for auto running compile on source file change reloading modules in the shell.

Version: 1.1.0

Prerequisites

On Linux you need to install inotify-tools.

Usage


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>

Output on file change


 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 ...