summaryrefslogtreecommitdiff
path: root/src/rebar_eunit.erl
Commit message (Collapse)AuthorAgeFilesLines
* eunit: analyze coverage only for cover compiled modulesShunichi Shinohara2012-09-131-1/+3
| | | | This change fixes #310.
* Use R15B02 EUnit {test,M,F} primitive as suggested by Richard CarlssonTuncer Ayaz2012-09-061-14/+20
|
* Comment eunit_test:function_wrapper/2 TODOTuncer Ayaz2012-09-011-0/+1
|
* rebar_eunit: adapt to R15B02 changesTuncer Ayaz2012-08-311-6/+13
|
* Stop cover server between eunit runs for speedMarkus Näsman2012-08-301-13/+14
| | | | | | | | | | | Cover gets slower and slower for each application. This is due to the cover_server internal state. Stopping the cover server between eunit+cover runs, emptying the cover_server state, gives a ~5-6x speed improvement when analyzing many Erlang modules. Stopping the cover server replaces the earlier practice of doing a cover:reset before each run. On a project consisting of 62 dependencies with a total of 1866 Erlang modules the running time of rebar eunit decreased from ~20 minutes to ~3 minutes.
* Fix whitespace error in rebar_eunitTuncer Ayaz2012-08-221-1/+2
|
* Fix whitespace errors in rebar_ct and rebar_eunitTuncer Ayaz2012-08-221-1/+1
|
* Cleanup and commentTuncer Ayaz2012-08-201-49/+84
|
* Fix tests= option not running generator testsRoberto Ostinelli2012-08-201-2/+11
|
* Add experimental tests= filter without eunit suitesRoberto Ostinelli2012-08-201-8/+16
|
* Clarify commentsTuncer Ayaz2012-08-121-1/+1
|
* rebar_eunit: add tests= TODO itemTuncer Ayaz2012-08-111-0/+1
|
* Add experimental tests= filter for eunit suitesRoberto Ostinelli2012-08-111-26/+142
|
* rebar_eunit: fix typoTuncer Ayaz2012-08-101-1/+1
|
* Use separate dirs for eunit and qcTuncer Ayaz2012-08-091-17/+23
|
* Separate eunit and qc compile optionsTuncer Ayaz2012-08-091-1/+1
|
* Replace test-compile with compile_only=true optionTuncer Ayaz2012-08-091-20/+18
|
* Fix whitespace errorTuncer Ayaz2012-08-071-1/+1
|
* Use rebar_utils:test_dir/0 for coverdata export fileTuncer Ayaz2012-08-071-3/+1
|
* Enable export of cover data from eunit testrunDavid Åberg2012-08-071-0/+19
|
* Quote EUnit User's guide about _tests.beam handlingTuncer Ayaz2012-07-311-0/+12
|
* Add experimental notice to test-compile and shellTuncer Ayaz2012-07-311-0/+1
|
* Fix R13B03 build (Reported-by: Sergey Nartimov)Tuncer Ayaz2012-07-281-1/+1
|
* Rename old eunit compile options for consistency with test-compileTuncer Ayaz2012-07-261-1/+1
|
* Finalize app=, skip_app=, suite= deprecationsTuncer Ayaz2012-07-231-2/+1
|
* Add 'qc' cmd and rename eunit-compile to test-compileTuncer Ayaz2012-07-231-121/+21
|
* Add 'eunit-compile' cmd (Suggested-by: Joe Norton)Tuncer Ayaz2012-07-231-56/+77
|
* Do not use application:set_envTuncer Ayaz2012-07-231-10/+11
|
* Do not keep eunit configTuncer Ayaz2012-07-131-5/+5
|
* Remove shared stateTuncer Ayaz2012-07-131-25/+29
|
* Remove debug logTuncer Ayaz2012-07-111-1/+0
|
* Simplify eunitTuncer Ayaz2012-07-111-7/+7
|
* Use filename:joinTuncer Ayaz2012-07-111-3/+3
|
* Fix rebar_eunit whitespace issuesTuncer Ayaz2012-07-021-6/+5
|
* Fix cover crash if src_dirs is not defaultMotiejus Jakštys2012-07-021-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | Make sure files from erl_opts->src_dirs are copied to .eunit for cover inspection. Without this patch cover failed to find source files which were in src_dirs, and threw the following exception: ERROR: eunit failed while processing /path/to/project: {'EXIT',{{badmatch,{error,no_source_code_found}}, [{rebar_eunit,'-cover_analyze/3-fun-0-',1, [{file,"src/rebar_eunit.erl"},{line,280}]}, {lists,foreach,2,[{file,"lists.erl"},{line,1262}]}, {rebar_eunit,cover_analyze,3, [{file,"src/rebar_eunit.erl"},{line,279}]}, {rebar_eunit,eunit,2,[{file,"src/rebar_eunit.erl"},{line,140}]}, {rebar_core,run_modules,4,[{file,"src/rebar_core.erl"},{line,425}]}, {rebar_core,execute,5,[{file,"src/rebar_core.erl"},{line,359}]}, {rebar_core,process_dir0,6,[{file,"src/rebar_core.erl"},{line,223}]}, {rebar_core,process_dir,4, [{file,"src/rebar_core.erl"},{line,130}]}]}} Now all source files are copied to .eunit.
* Fix #252 (Reported-by: Maxim-Vladimirsky)Tuncer Ayaz2012-06-211-22/+16
|
* Fix rebar_eunit commentsTuncer Ayaz2012-06-181-1/+1
|
* Remove ?FAIL in favor of ?ABORTDave Smith2012-06-081-1/+1
|
* Fix for destruction of config app vars on resetJeremy Raymond2012-02-151-1/+36
|
* Fix whitespace errorsTuncer Ayaz2012-01-171-12/+13
|
* Delete existing erl files in ?EUNIT_DIRFrancis Joanis2012-01-171-0/+21
| | | | | | Before copying the .erl files to the .eunit directory ensure that they are deleted if they already exist. This prevents EACCES errors to happen when trying to re-copy .erl files that are read-only.
* Don't kill any inet_gethost_native after eunitTomas Abrahamsson2011-12-291-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid error reports like this one: prompt$ rebar eunit ==> dummy (eunit) Test passed. =ERROR REPORT==== 29-Dec-2011::23:22:11 === ** Generic server inet_gethost_native_sup terminating ** Last message in was {'EXIT',<0.62.0>,killed} ** When Server state == {state,inet_gethost_native,undefined,<0.62.0>, {local,inet_gethost_native_sup}} ** Reason for termination == ** killed Previously, it could happen if an eunit test did something that required a name lookup, like in this example: -module(dummy_tests). -include_lib("eunit/include/eunit.hrl"). x_test() -> {ok, _Hostent} = inet:gethostbyname(localhost). The inet_gethost_native is a process, started on demand, under a supervisor_bridge under the kernel_sup, but it is not a gen_server process or the like, so it has nothing in '$ancestors' in its process dictionary to indicate it is part of kernel.
* Universally support apps=/skip_apps=Tuncer Ayaz2011-12-121-34/+1
|
* Stop applications before killing extra processesKlas Johansson2011-11-021-3/+4
| | | | | | This means that applications get a chance to shut down themselves, before rebar will start killing their processes. This avoids ERROR REPORTS from application supervisors.
* Remove modules that fail coverage from the listJon Meredith2011-10-141-4/+4
|
* Fix cover_init call to use correct module listTuncer Ayaz2011-09-011-1/+1
|
* Keep *_tests not automatically included by eunitJoseph Wayne Norton2011-09-011-9/+16
|
* Fix R13 compatibility (auto imported monitor/2)Alfonso De Gregorio2011-08-281-1/+1
|
* Fix Dialyzer warningsTuncer Ayaz2011-08-251-12/+12
|
* Merge slf-eunit-process-isolation2 branchScott Lystig Fritchie2011-08-241-0/+148
|\