diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-05-03 16:24:02 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-05-04 12:10:39 +0200 |
commit | d8028da128c4382fdc5781df70a9ca5d56f38694 (patch) | |
tree | 57be312cdcc50d45904040db6959e583cc534dfd /lib | |
parent | 4a355fd8c7a2d4410827ddd042e607238f48f7e8 (diff) | |
download | otp-d8028da128c4382fdc5781df70a9ca5d56f38694.tar.gz otp-d8028da128c4382fdc5781df70a9ca5d56f38694.tar.bz2 otp-d8028da128c4382fdc5781df70a9ca5d56f38694.zip |
et: Remove unnecessary boilerplate in tests
Diffstat (limited to 'lib')
-rw-r--r-- | lib/et/test/et_SUITE.erl | 24 | ||||
-rw-r--r-- | lib/et/test/et_wx_SUITE.erl | 23 |
2 files changed, 11 insertions, 36 deletions
diff --git a/lib/et/test/et_SUITE.erl b/lib/et/test/et_SUITE.erl index 4a26b46439..199aff43a8 100644 --- a/lib/et/test/et_SUITE.erl +++ b/lib/et/test/et_SUITE.erl @@ -16,7 +16,8 @@ %% -module(et_SUITE). --compile([export_all]). +-export([suite/0, all/0]). +-export([app/1, appup/1]). -include_lib("common_test/include/ct.hrl"). suite() -> @@ -25,27 +26,10 @@ suite() -> all() -> [app, appup]. -groups() -> - []. - -init_per_suite(Config) -> - Config. - -end_per_suite(_Config) -> - ok. - -init_per_group(_GroupName, Config) -> - Config. - -end_per_group(_GroupName, Config) -> - Config. - -app() -> - [{doc, "Test that the et app file is ok"}]. +%% Test that the et app file is ok app(Config) when is_list(Config) -> ok = ?t:app_test(et). -appup() -> - [{doc, "Test that the et appup file is ok"}]. +%% Test that the et appup file is ok appup(Config) when is_list(Config) -> ok = ?t:appup_test(et). diff --git a/lib/et/test/et_wx_SUITE.erl b/lib/et/test/et_wx_SUITE.erl index 785d1b8145..6475b6706b 100644 --- a/lib/et/test/et_wx_SUITE.erl +++ b/lib/et/test/et_wx_SUITE.erl @@ -19,11 +19,10 @@ -module(et_wx_SUITE). --export([all/0, suite/0,groups/0,init_per_group/2,end_per_group/2, - init_per_suite/1, end_per_suite/1, - init_per_testcase/2, end_per_testcase/2]). - --compile(export_all). +-export([all/0, suite/0, + init_per_testcase/2, end_per_testcase/2, + init_per_suite/1, end_per_suite/1]). +-export([start_all_windows/1]). -include("et_test_lib.hrl"). @@ -40,21 +39,13 @@ end_per_testcase(Func,Config) -> et_test_lib:end_per_testcase(Func,Config). %% SUITE specification -suite() -> [{ct_hooks,[ts_install_cth]}]. + +suite() -> + [{ct_hooks,[ts_install_cth]}]. all() -> [start_all_windows]. -groups() -> - []. - -init_per_group(_GroupName, Config) -> - Config. - -end_per_group(_GroupName, Config) -> - Config. - - %% The test cases %% Display all windows and see if something crashes |