Skip to content

Commit

Permalink
add ct-suite template for creating a new CT suite
Browse files Browse the repository at this point in the history
  • Loading branch information
tsloughter committed Aug 31, 2020
1 parent 390421e commit 3f2d2af
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
5 changes: 5 additions & 0 deletions priv/templates/ct-suite.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{description, "Common Test suite module"}.
{variables, [
{name, "myapp", "Name of the Common Test suite to create"}
]}.
{template, "ct_suite.erl", "test/{{name}}_SUITE.erl"}.
34 changes: 34 additions & 0 deletions priv/templates/ct_suite.erl
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
-module({{name}}_SUITE).

-include_lib("common_test/include/ct.hrl").
-include_lib("stdlib/include/assert.hrl").

-compile(nowarn_export_all).
-compile(export_all).

suite() ->
[].

all() ->
[].

groups() ->
[].

init_per_suite(Config) ->
Config.

end_per_suite(_Config) ->
ok.

init_per_group(_GroupName, Config) ->
Config.

end_per_group(_GroupName, _Config) ->
ok.

init_per_testcase(_Case, Config) ->
Config.

end_per_testcase(_Case, _Config) ->
ok.

0 comments on commit 3f2d2af

Please sign in to comment.