|
| 1 | +%%-------------------------------------------------------------------- |
| 2 | +%% Copyright (c) 2020 EMQ Technologies Co., Ltd. All Rights Reserved. |
| 3 | +%% |
| 4 | +%% Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +%% you may not use this file except in compliance with the License. |
| 6 | +%% You may obtain a copy of the License at |
| 7 | +%% |
| 8 | +%% http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +%% |
| 10 | +%% Unless required by applicable law or agreed to in writing, software |
| 11 | +%% distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +%% See the License for the specific language governing permissions and |
| 14 | +%% limitations under the License. |
| 15 | +%%-------------------------------------------------------------------- |
| 16 | + |
| 17 | +-module(quic_SUITE). |
| 18 | + |
| 19 | +%% API |
| 20 | +-export([all/0, |
| 21 | + suite/0, |
| 22 | + groups/0, |
| 23 | + init_per_suite/1, |
| 24 | + end_per_suite/1, |
| 25 | + group/1, |
| 26 | + init_per_group/2, |
| 27 | + end_per_group/2, |
| 28 | + init_per_testcase/2, |
| 29 | + end_per_testcase/2]). |
| 30 | + |
| 31 | +%% test cases |
| 32 | +-export([ |
| 33 | + %% TODO: test case names go here |
| 34 | + ]). |
| 35 | + |
| 36 | +-include_lib("proper/include/proper.hrl"). |
| 37 | +-include_lib("common_test/include/ct.hrl"). |
| 38 | + |
| 39 | +-define(PROPTEST(M,F), true = proper:quickcheck(M:F())). |
| 40 | + |
| 41 | +all() -> |
| 42 | + [ |
| 43 | + %% TODO: Group names here e.g. {group, crud} |
| 44 | + ]. |
| 45 | + |
| 46 | +suite() -> |
| 47 | + [{ct_hooks,[cth_surefire]}, {timetrap, {seconds, 30}}]. |
| 48 | + |
| 49 | +groups() -> |
| 50 | + [ |
| 51 | + %% TODO: group definitions here e.g. |
| 52 | + %% {crud, [], [ |
| 53 | + %% t_create_resource, |
| 54 | + %% t_read_resource, |
| 55 | + %% t_update_resource, |
| 56 | + %% t_delete_resource |
| 57 | + %% ]} |
| 58 | + |
| 59 | + ]. |
| 60 | + |
| 61 | +%%%=================================================================== |
| 62 | +%%% Overall setup/teardown |
| 63 | +%%%=================================================================== |
| 64 | +init_per_suite(Config) -> |
| 65 | + Config. |
| 66 | + |
| 67 | +end_per_suite(_Config) -> |
| 68 | + ok. |
| 69 | + |
| 70 | + |
| 71 | +%%%=================================================================== |
| 72 | +%%% Group specific setup/teardown |
| 73 | +%%%=================================================================== |
| 74 | +group(_Groupname) -> |
| 75 | + []. |
| 76 | + |
| 77 | +init_per_group(_Groupname, Config) -> |
| 78 | + Config. |
| 79 | + |
| 80 | +end_per_group(_Groupname, _Config) -> |
| 81 | + |
| 82 | + ok. |
| 83 | + |
| 84 | + |
| 85 | +%%%=================================================================== |
| 86 | +%%% Testcase specific setup/teardown |
| 87 | +%%%=================================================================== |
| 88 | +init_per_testcase(_TestCase, Config) -> |
| 89 | + Config. |
| 90 | + |
| 91 | +end_per_testcase(_TestCase, _Config) -> |
| 92 | + ok. |
| 93 | + |
| 94 | +%%%=================================================================== |
| 95 | +%%% Individual Test Cases (from groups() definition) |
| 96 | +%%%=================================================================== |
| 97 | + |
| 98 | + |
0 commit comments