diff options
author | alisdair sullivan <alisdairsullivan@yahoo.ca> | 2016-01-17 14:49:39 -0800 |
---|---|---|
committer | alisdair sullivan <alisdairsullivan@yahoo.ca> | 2016-01-17 14:49:39 -0800 |
commit | a8dc8ce6e682481aa8178f5cac0ad711e432eaed (patch) | |
tree | 0789a46b6cf291efec8e6cbfb8280df76f43477e /test | |
parent | ec7245b454a43205eebc51728672d7a940434e58 (diff) |
deduplicate default test set generated by `rebar3 eunit`
this ONLY attempts to deduplicate test sets that are generated by
rebar in the absence of any user specified tests
Diffstat (limited to 'test')
-rw-r--r-- | test/rebar_eunit_SUITE.erl | 14 |
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). |