Created
February 23, 2014 12:48
-
-
Save sideshowcoder/9170939 to your computer and use it in GitHub Desktop.
Run Erlang EUnit from the shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# replace ERLANG_MODULE with the module you try to test, i.e. calc | |
erlc -DTEST ERLANG_MODULE.erl && erl -noshell -pa . -eval "eunit:test(ERLANG_MODULE, [verbose])" -s init stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" replace ERLANG_MODULE with the module you try to test, i.e. calc | |
" Define ,t in vim to run the tests | |
:map ,t :!erlc -DTEST ERLANG_MODULE.erl && erl -noshell -pa . -eval "eunit:test(ERLANG_MODULE, [verbose])" -s init stop<cr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment