Skip to content

Commit 3f2d2af

Browse files
committed
add ct-suite template for creating a new CT suite
1 parent 390421e commit 3f2d2af

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

priv/templates/ct-suite.template

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{description, "Common Test suite module"}.
2+
{variables, [
3+
{name, "myapp", "Name of the Common Test suite to create"}
4+
]}.
5+
{template, "ct_suite.erl", "test/{{name}}_SUITE.erl"}.

priv/templates/ct_suite.erl

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
-module({{name}}_SUITE).
2+
3+
-include_lib("common_test/include/ct.hrl").
4+
-include_lib("stdlib/include/assert.hrl").
5+
6+
-compile(nowarn_export_all).
7+
-compile(export_all).
8+
9+
suite() ->
10+
[].
11+
12+
all() ->
13+
[].
14+
15+
groups() ->
16+
[].
17+
18+
init_per_suite(Config) ->
19+
Config.
20+
21+
end_per_suite(_Config) ->
22+
ok.
23+
24+
init_per_group(_GroupName, Config) ->
25+
Config.
26+
27+
end_per_group(_GroupName, _Config) ->
28+
ok.
29+
30+
init_per_testcase(_Case, Config) ->
31+
Config.
32+
33+
end_per_testcase(_Case, _Config) ->
34+
ok.

0 commit comments

Comments
 (0)