Browse Source

Move test config to separate file (fixes #211).

Andreas Stenius 9 years ago
parent
commit
b8ed4b5bff
3 changed files with 23 additions and 22 deletions
  1. 1 1
      Makefile
  2. 22 0
      rebar-tests.config
  3. 0 21
      rebar.config

+ 1 - 1
Makefile

@@ -19,7 +19,7 @@ update-deps:
 
 .PHONY: tests
 tests: src/erlydtl_parser.erl
-	@$(REBAR) eunit
+	@$(REBAR) -C rebar-tests.config eunit
 
 check: tests dialyze
 

+ 22 - 0
rebar-tests.config

@@ -0,0 +1,22 @@
+%% -*- mode: erlang -*-
+
+{eunit_opts,
+ [%% This turns off the default output, MUST HAVE
+  no_tty,
+  %% Uses the progress formatter with ANSI-colored output
+  {report, {eunit_progress, [colored
+                             %% uncomment to get a list of slowest running tests
+                             %%, profile
+                            ]}}
+ ]}.
+
+{deps,
+ [{eunit_formatters, ".*",
+   {git, "git://github.com/seancribbs/eunit_formatters", {branch, "master"}}}
+ ]}.
+
+{pre_hooks,
+ [{eunit,
+   "erlc -I include/erlydtl_preparser.hrl -o test"
+   " test/erlydtl_extension_testparser.yrl"}
+ ]}.

+ 0 - 21
rebar.config

@@ -6,24 +6,3 @@
 
 {erl_opts, [debug_info]}.
 {yrl_opts, [{includefile, "include/erlydtl_preparser.hrl"}]}.
-
-{eunit_opts,
- [%% This turns off the default output, MUST HAVE
-  no_tty,
-  %% Uses the progress formatter with ANSI-colored output
-  {report, {eunit_progress, [colored
-                             %% uncomment to get a list of slowest running tests
-                             %%, profile
-                            ]}}
- ]}.
-
-{deps,
- [{eunit_formatters, ".*",
-   {git, "git://github.com/seancribbs/eunit_formatters", {branch, "master"}}}
- ]}.
-
-{pre_hooks,
- [{eunit,
-   "erlc -I include/erlydtl_preparser.hrl -o test"
-   " test/erlydtl_extension_testparser.yrl"}
- ]}.