summaryrefslogtreecommitdiff
path: root/src/rebar_prv_eunit.erl
diff options
context:
space:
mode:
authoralisdair sullivan <alisdair.sullivan@askuity.com>2015-11-01 13:41:46 -0800
committeralisdair sullivan <alisdair.sullivan@askuity.com>2015-11-01 13:49:47 -0800
commit67bf54d04d332bbff961ab4e8ab730858bcdce7a (patch)
treeda85f23627345dc88eda0f825c34f5ba0cbeeab8 /src/rebar_prv_eunit.erl
parente72e46fc9d23d8467cd58d1728175ae59d2a7c44 (diff)
add an option to soft purge rather than purge old code
at the cost of some SASL warnings this prevents rebar3 from terminating processes when reloading their code before running tests
Diffstat (limited to 'src/rebar_prv_eunit.erl')
-rw-r--r--src/rebar_prv_eunit.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_prv_eunit.erl b/src/rebar_prv_eunit.erl
index 0cdc20b..d5612e8 100644
--- a/src/rebar_prv_eunit.erl
+++ b/src/rebar_prv_eunit.erl
@@ -49,7 +49,7 @@ do(State) ->
do(State, Tests) ->
?INFO("Performing EUnit tests...", []),
- rebar_utils:update_code(rebar_state:code_paths(State, all_deps)),
+ rebar_utils:update_code(rebar_state:code_paths(State, all_deps), [soft_purge]),
%% Run eunit provider prehooks
Providers = rebar_state:providers(State),