summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2012-08-09 18:37:26 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-08-09 18:37:26 +0200
commite47d643ea3b490fd4835629e86d90fa3121122de (patch)
tree3393baa4fc23a36086c34a51eaa2991b667224a3 /test
parentb5e0d6d5db19fef0b17e585354f75f57267df142 (diff)
downloadrebar-e47d643ea3b490fd4835629e86d90fa3121122de.tar.gz
Use separate dirs for eunit and qc
Diffstat (limited to 'test')
-rw-r--r--test/rebar_eunit_tests.erl26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/rebar_eunit_tests.erl b/test/rebar_eunit_tests.erl
index 828e1a4..f8ca97f 100644
--- a/test/rebar_eunit_tests.erl
+++ b/test/rebar_eunit_tests.erl
@@ -35,7 +35,7 @@
-include_lib("eunit/include/eunit.hrl").
%% Assuming this test is run inside the rebar 'eunit'
-%% command, the current working directory will be '.test'
+%% command, the current working directory will be '.eunit'
-define(REBAR_SCRIPT, "../rebar").
-define(TMP_DIR, "tmp_eunit/").
@@ -70,7 +70,7 @@ cover_test_() ->
{"Only production modules get coverage reports",
assert_files_not_in("the temporary eunit directory",
- [".test/myapp_mymod_tests.COVER.html"])}]}.
+ [".eunit/myapp_mymod_tests.COVER.html"])}]}.
cover_with_suite_test_() ->
{"Ensure Cover runs with Tests in a test dir and a test suite",
@@ -83,21 +83,21 @@ cover_with_suite_test_() ->
[{"Cover reports are generated for module",
assert_files_in("the temporary eunit directory",
- [".test/index.html",
- ".test/mysuite.COVER.html"])},
+ [".eunit/index.html",
+ ".eunit/mysuite.COVER.html"])},
{"Only production modules get coverage reports",
assert_files_not_in("the temporary eunit directory",
- [".test/myapp_app.COVER.html",
- ".test/myapp_mymod.COVER.html",
- ".test/myapp_sup.COVER.html",
- ".test/myapp_mymod_tests.COVER.html"])}]}.
+ [".eunit/myapp_app.COVER.html",
+ ".eunit/myapp_mymod.COVER.html",
+ ".eunit/myapp_sup.COVER.html",
+ ".eunit/myapp_mymod_tests.COVER.html"])}]}.
expected_cover_generated_files() ->
- [".test/index.html",
- ".test/myapp_app.COVER.html",
- ".test/myapp_mymod.COVER.html",
- ".test/myapp_sup.COVER.html"].
+ [".eunit/index.html",
+ ".eunit/myapp_app.COVER.html",
+ ".eunit/myapp_mymod.COVER.html",
+ ".eunit/myapp_sup.COVER.html"].
cover_coverage_test_() ->
{"Coverage is accurately calculated",
@@ -246,7 +246,7 @@ assert_files_not_in(_, []) -> [].
assert_full_coverage(Mod) ->
fun() ->
- {ok, F} = file:read_file(".test/index.html"),
+ {ok, F} = file:read_file(".eunit/index.html"),
Result = [X || X <- string:tokens(binary_to_list(F), "\n"),
string:str(X, Mod) =/= 0,
string:str(X, "100%") =/= 0],