Skip to content

Rebar3 plugin for auto compiling and testing on changes

License

Notifications You must be signed in to change notification settings

eyedouble/rebar3_autotdd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Rebar3 plugin for auto compiling and testing on changes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages