summaryrefslogtreecommitdiff
path: root/src/rebar_eunit.erl
Commit message (Collapse)AuthorAgeFilesLines
* Taught eunit/coverage to split the src module coverage stats from any test code.Jon Meredith2010-05-031-19/+32
|
* Copy all source files for eunit to .eunit directory so that cover works ↵Dave Smith2010-05-031-1/+1
| | | | properly (ick!)
* Copy src files to .eunit so that cover can always find themJeremy Raymond2010-04-221-0/+6
|
* Merging w/ mainlineDave Smith2010-04-231-3/+2
|\
| * Reuse rebar_utils:get_cwd/0Tuncer Ayaz2010-04-211-2/+1
|/
* Make sure to add .eunit as an absolute directory so that we avoid weirdness ↵Dave Smith2010-04-161-1/+5
| | | | with code loading stuffs.
* Fixed 3 bugs in rebar_eunit. Added EUnit tests to capture them.Chris Bernard2010-03-041-10/+11
| | | | | | | | | | | | | | | | | | | | | | | 1. When running the eunit command with the convention of putting tests in "*_tests" modules, eunit would run those tests twice. This is because: 1) eunit:test/1 will naturally look for foo's tests both in foo, and in foo_tests, and 2) eunit:test/1 was being folded over all project modules. The fix is to filter "*_tests" modules from the list passed to eunit:test/1. 2. When running the eunit command with cover enabled and tests in a 'test' directory, cover would error because it couldn't find the source code for those tests. This is because cover:analyze/3 will only find module source in "." and "../src". This is hard-coded in cover :-(. Since cover shouldn't be calculating code coverage on test code anyway, the fix is to not fold cover:analyze/3 over non-production code. 3. When running the eunit command with cover enabled and a test suite defined, cover would only attempt to calculate coverage on the the test suite itself. This was because only the suite was passed to cover:analyze/3. The fix is to fold cover:analyze/3 over all the production code, filtering out the suite module if it is defined.
* Refactor eunit and covertheiw2010-02-191-106/+93
|
* Merging with OJ's branchDave Smith2010-02-131-3/+36
|\
| * Added support for the speficiation of test suite namesOJ Reeves2010-02-031-4/+35
| | | | | | | | | | | | | | eg. rebar eunit -- runs all tests in all modules rebar eunit suite=foo -- only runs tests in foo.erl/foo_tests.erl Added an entry to .hgignore to avoid .swp files (created by VIM).
* | Provide package support for eunit; build_plt now includes listed ↵theiw2010-02-051-12/+17
|/ | | | applications; begin including -spec annotations
* [mq]: eunit-fixOJ Reeves2010-01-091-1/+1
|
* Another round of refactoring to yield better flexiblity in the base_compiler ↵Dave Smith2010-01-031-15/+6
| | | | system
* Refactor of compilation logic to enable support for package modules and ↵Dave Smith2010-01-021-5/+10
| | | | provide better modularity/reusability for other systems
* Added vi modeline/emacs local variables to file headersTuncer Ayaz2009-12-311-0/+2
|
* Deleted trailing whitespaceTuncer Ayaz2009-12-301-11/+11
|
* add hrl-triggered recompiling to 'eunit' build as wellBryan Fink2009-12-211-1/+1
|
* recompile files if their "includes" have changedBryan Fink2009-12-211-1/+1
| | | | added parameter to do_compile for passing a function that can extra the list of includes from a file
* Run eunit in .eunit dir to ensure any created/temporary files are created thereDave Smith2009-12-141-0/+8
|
* Fixing number of warnings and bugletsDave Smith2009-12-141-6/+6
|
* Add support for coverage generationDave Smith2009-12-091-2/+103
|
* Remove unnecessary debug in _core; adding EQC flag for eunit buildsDave Smith2009-12-081-2/+24
|
* Refactoring eunit to support in-module testsDave Smith2009-12-071-79/+44
|
* Added support for eunit tests as test/*_tests.erlJon Meredith2009-12-051-0/+141