summaryrefslogtreecommitdiff
path: root/priv/templates/ctsuite.template
diff options
context:
space:
mode:
authorTim Watson <watson.timothy@gmail.com>2011-01-26 11:57:22 +0000
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-02-15 17:21:56 +0100
commit7810d7bf7cebe7062c5850b5f20eeb12cf5e3284 (patch)
treed717851c7b35e62370660b04af709fb4bfa6356a /priv/templates/ctsuite.template
parent1979da9ee21b90799bdbd3f2b5cdec5e5c982a01 (diff)
Add common_test suite template
This change adds a simple common_test suite template that can be instantiated with the name of a module under test like so: `rebar create template=ctsuite testmod=mymodule` The template creates an empty test suite in the test directory, automatically exports test functions and sets up a first, skipped test function.
Diffstat (limited to 'priv/templates/ctsuite.template')
-rw-r--r--priv/templates/ctsuite.template2
1 files changed, 2 insertions, 0 deletions
diff --git a/priv/templates/ctsuite.template b/priv/templates/ctsuite.template
new file mode 100644
index 0000000..b7de337
--- /dev/null
+++ b/priv/templates/ctsuite.template
@@ -0,0 +1,2 @@
+{variables, [{testmod, "mymodule"}]}.
+{template, "ctsuite.erl", "test/{{testmod}}_SUITE.erl"}.