diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-03-03 07:32:57 -0600 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-03-03 07:32:57 -0600 |
commit | 358046b0957fc7211f5dab7d76f0bc365d00c439 (patch) | |
tree | f13157852e061f5184ce9727dd6051d1a85e56d9 /test/rebar_compile_SUITE.erl | |
parent | 4c70d16e505c05695e902bea502855d8383fbe82 (diff) | |
parent | 6c421e543373aaf41a6ed10719f5da19b0cafd93 (diff) |
Merge pull request #202 from talentdeficit/cover
`cover` task
Diffstat (limited to 'test/rebar_compile_SUITE.erl')
-rw-r--r-- | test/rebar_compile_SUITE.erl | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/test/rebar_compile_SUITE.erl b/test/rebar_compile_SUITE.erl index 924ce5c..368ba98 100644 --- a/test/rebar_compile_SUITE.erl +++ b/test/rebar_compile_SUITE.erl @@ -11,7 +11,8 @@ build_checkout_deps/1, recompile_when_opts_change/1, dont_recompile_when_opts_dont_change/1, - dont_recompile_yrl_or_xrl/1]). + dont_recompile_yrl_or_xrl/1, + purge_before_load/1]). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). @@ -33,7 +34,7 @@ all() -> [build_basic_app, build_release_apps, build_checkout_apps, build_checkout_deps, recompile_when_opts_change, dont_recompile_when_opts_dont_change, - dont_recompile_yrl_or_xrl]. + dont_recompile_yrl_or_xrl, purge_before_load]. build_basic_app(Config) -> AppDir = ?config(apps, Config), @@ -183,3 +184,13 @@ dont_recompile_yrl_or_xrl(Config) -> NewModTime = filelib:last_modified(XrlBeam), ?assert(ModTime == NewModTime). + +purge_before_load(Config) -> + AppDir = ?config(apps, Config), + + Name = rebar_test_utils:create_random_name("app1_"), + Vsn = rebar_test_utils:create_random_vsn(), + rebar_test_utils:create_app(AppDir, Name, Vsn, [kernel, stdlib]), + + Tasks = ["do", "compile,compile,compile"], + rebar_test_utils:run_and_check(Config, [], Tasks, {ok, [{app, Name}]}). |