summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Watson <watson.timothy@gmail.com>2011-09-18 13:38:31 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-12-28 12:41:36 +0100
commit286a2a88a4d769b702529d184661c4166854f27e (patch)
treeedc009f279f47fdb965cdb055e86815d9e8a8c72 /src
parentbd349bd2c4d8f68e19f130ea04cf27542e52fb3b (diff)
Add support for customising common test directory
This patch allows users to specify the directory in which common_test source files can be found. Most common_test suites are integration, rather than unit tests and keeping the sources apart from test sources for other frameworks such as eunit and PropEr is a useful feature.
Diffstat (limited to 'src')
-rw-r--r--src/rebar_ct.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_ct.erl b/src/rebar_ct.erl
index 54e97e9..70524af 100644
--- a/src/rebar_ct.erl
+++ b/src/rebar_ct.erl
@@ -46,7 +46,8 @@
%% ===================================================================
ct(Config, File) ->
- run_test_if_present("test", Config, File).
+ TestDir = rebar_config:get_local(Config, ct_dir, "test"),
+ run_test_if_present(TestDir, Config, File).
%% ===================================================================
%% Internal functions