From 34dd0ccdd9135015aef9984fc1047b664da2e361 Mon Sep 17 00:00:00 2001 From: Scott Lystig Fritchie Date: Thu, 11 Aug 2011 15:52:34 -0500 Subject: EUnit: reset vm state after test run Added new property to `eunit_opts` option list: reset_after_eunit::boolean() - default = true. If true, try to "reset" VM state to approximate state prior to running the EUnit tests: * Stop net_kernel if it was started * Stop OTP applications not running before EUnit tests were run * Kill processes not running before EUnit tests were run * Reset OTP application environment variables --- src/rebar_eunit.erl | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) (limited to 'src') diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl index d42ed1f..bfaaaa4 100644 --- a/src/rebar_eunit.erl +++ b/src/rebar_eunit.erl @@ -29,6 +29,15 @@ %% %% The following Global options are supported: %%