summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2016-01-23 09:23:59 -0600
committerTristan Sloughter <t@crashfast.com>2016-01-23 09:23:59 -0600
commit3b20e6380ceeb9cb32565f27a164851fe58de67d (patch)
treee2324225a733c1fd1010f259459bf384ba8004d4 /test
parent22510b8067ae7c57228e2d32a98b5ebfa791ad8b (diff)
parenta8dc8ce6e682481aa8178f5cac0ad711e432eaed (diff)
Merge pull request #1024 from talentdeficit/dedupe_eunit_default_tests
deduplicate default test set generated by `rebar3 eunit`
Diffstat (limited to 'test')
-rw-r--r--test/rebar_eunit_SUITE.erl14
1 files changed, 9 insertions, 5 deletions
diff --git a/test/rebar_eunit_SUITE.erl b/test/rebar_eunit_SUITE.erl
index 896c624..cb2c911 100644
--- a/test/rebar_eunit_SUITE.erl
+++ b/test/rebar_eunit_SUITE.erl
@@ -156,7 +156,9 @@ basic_app_exports(_Config) ->
basic_app_testset(Config) ->
Result = ?config(result, Config),
- {ok, [{application, basic_app}]} = rebar_prv_eunit:prepare_tests(Result).
+ Set = {ok, [{application, basic_app},
+ {module, basic_app_tests_helper}]},
+ Set = rebar_prv_eunit:prepare_tests(Result).
@@ -208,12 +210,14 @@ multi_app_exports(_Config) ->
%% check that the correct tests are schedule to run for project
multi_app_testset(Config) ->
- AppDir = ?config(apps, Config),
Result = ?config(result, Config),
- Set = {ok, [{application, multi_app_bar},
- {application, multi_app_baz},
- {dir, filename:join([AppDir, "test"])}]},
+ Set = {ok, [{application, multi_app_baz},
+ {application, multi_app_bar},
+ {module, multi_app_bar_tests_helper},
+ {module, multi_app_baz_tests_helper},
+ {module, multi_app_tests},
+ {module, multi_app_tests_helper}]},
Set = rebar_prv_eunit:prepare_tests(Result).