diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-09-06 18:35:04 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-09-06 18:35:04 -0500 |
commit | 586a1a487cd70bc92816b35e7dfc07bc893a9ff3 (patch) | |
tree | f7cfd418e01a730d692c5276f71c0040e3ea7959 /test | |
parent | 2d4ba55f57176b181c23bac0eb178c83ca56dcc7 (diff) |
add test for 'rebar3 plugins list' to ensure it can run
Diffstat (limited to 'test')
-rw-r--r-- | test/rebar_plugins_SUITE.erl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/rebar_plugins_SUITE.erl b/test/rebar_plugins_SUITE.erl index 5e2c782..3df3c0e 100644 --- a/test/rebar_plugins_SUITE.erl +++ b/test/rebar_plugins_SUITE.erl @@ -9,6 +9,7 @@ compile_plugins/1, compile_global_plugins/1, complex_plugins/1, + list/1, upgrade/1]). -include_lib("common_test/include/ct.hrl"). @@ -31,7 +32,7 @@ end_per_testcase(_, _Config) -> catch meck:unload(). all() -> - [compile_plugins, compile_global_plugins, complex_plugins, upgrade]. + [compile_plugins, compile_global_plugins, complex_plugins, list, upgrade]. %% Tests that compiling a project installs and compiles the plugins of deps compile_plugins(Config) -> @@ -163,6 +164,12 @@ complex_plugins(Config) -> meck:unload(rebar_dir). +list(Config) -> + rebar_test_utils:run_and_check( + Config, [], ["plugins", "list"], + {ok, []} + ). + upgrade(Config) -> AppDir = ?config(apps, Config), |