summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJames Fish <james@fishcakez.com>2016-07-11 14:41:19 +0100
committerJames Fish <james@fishcakez.com>2016-07-11 15:52:42 +0100
commit0fa2b501f05e700a35c272f98f1ab976a5bd6170 (patch)
tree124704feb94581f3420bb5fe4efbe9bb9f28e831 /test
parente334f211e373c9f019c68d5d35cc8b6aa0a1723a (diff)
Don't error when analyzing empty app
Diffstat (limited to 'test')
-rw-r--r--test/rebar_dialyzer_SUITE.erl16
1 files changed, 15 insertions, 1 deletions
diff --git a/test/rebar_dialyzer_SUITE.erl b/test/rebar_dialyzer_SUITE.erl
index ededf6a..e5d8c52 100644
--- a/test/rebar_dialyzer_SUITE.erl
+++ b/test/rebar_dialyzer_SUITE.erl
@@ -10,6 +10,7 @@
groups/0,
empty_base_plt/1,
empty_app_plt/1,
+ empty_app_succ_typings/1,
update_base_plt/1,
update_app_plt/1,
build_release_plt/1,
@@ -55,7 +56,7 @@ all() ->
[{group, empty}, {group, build_and_check}, {group, update}].
groups() ->
- [{empty, [empty_base_plt, empty_app_plt]},
+ [{empty, [empty_base_plt, empty_app_plt, empty_app_succ_typings]},
{build_and_check, [build_release_plt, plt_apps_option]},
{update, [update_base_plt, update_app_plt]}].
@@ -102,6 +103,19 @@ empty_app_plt(Config) ->
ok.
+empty_app_succ_typings(Config) ->
+ AppDir = ?config(apps, Config),
+ RebarConfig = ?config(rebar_config, Config),
+
+ Name = rebar_test_utils:create_random_name("app1_"),
+ Vsn = rebar_test_utils:create_random_vsn(),
+ rebar_test_utils:create_empty_app(AppDir, Name, Vsn, []),
+
+ rebar_test_utils:run_and_check(Config, RebarConfig, ["dialyzer"],
+ {ok, [{app, Name}]}),
+
+ ok.
+
update_base_plt(Config) ->
AppDir = ?config(apps, Config),
RebarConfig = ?config(rebar_config, Config),