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 --- THANKS | 1 + src/rebar_eunit.erl | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+) diff --git a/THANKS b/THANKS index 89dff05..4e38e79 100644 --- a/THANKS +++ b/THANKS @@ -63,3 +63,4 @@ Mattias Holmlund Tino Breddin David Nonnenmacher Anders Nygren +Scott Lystig Fritchie 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: %%