From 7810d7bf7cebe7062c5850b5f20eeb12cf5e3284 Mon Sep 17 00:00:00 2001 From: Tim Watson Date: Wed, 26 Jan 2011 11:57:22 +0000 Subject: 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. --- priv/templates/ctsuite.template | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 priv/templates/ctsuite.template (limited to 'priv/templates/ctsuite.template') 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"}. -- cgit v1.1