1%% 2%% %CopyrightBegin% 3%% 4%% Copyright Ericsson AB 2012-2016. All Rights Reserved. 5%% 6%% Licensed under the Apache License, Version 2.0 (the "License"); 7%% you may not use this file except in compliance with the License. 8%% You may obtain a copy of the License at 9%% 10%% http://www.apache.org/licenses/LICENSE-2.0 11%% 12%% Unless required by applicable law or agreed to in writing, software 13%% distributed under the License is distributed on an "AS IS" BASIS, 14%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15%% See the License for the specific language governing permissions and 16%% limitations under the License. 17%% 18%% %CopyrightEnd% 19%% 20-module(test_server_cover_SUITE). 21 22-export([all/1, init_per_suite/1, end_per_suite/1]). 23-export([init_per_testcase/2, end_per_testcase/2]). 24-export([tc1/1, tc2/1]). 25 26-include_lib("common_test/include/ct.hrl"). 27 28all(suite) -> 29 [tc1,tc2]. 30 31init_per_suite(Config) -> 32 Config. 33 34end_per_suite(_Config) -> 35 ok. 36 37init_per_testcase(_Case,Config) -> 38 Dog = test_server:timetrap({minutes,10}), 39 [{watchdog, Dog}|Config]. 40 41end_per_testcase(_Case,Config) -> 42 Dog=?config(watchdog, Config), 43 test_server:timetrap_cancel(Dog), 44 ok. 45 46 47%%%----------------------------------------------------------------- 48%%% Test cases 49tc1(Config) when is_list(Config) -> 50 cover_helper:foo(), 51 ok. 52 53tc2(Config) when is_list(Config) -> 54 cover_helper:bar(), 55 ok. 56 57%%%----------------------------------------------------------------- 58%%% Internal functions 59 60