Browse Source

get nice progress while running the test suite

Andreas Stenius 11 years ago
parent
commit
522e1c8eb3
2 changed files with 15 additions and 1 deletions
  1. 2 0
      NEWS.md
  2. 13 1
      rebar.config

+ 2 - 0
NEWS.md

@@ -25,3 +25,5 @@ Standards](http://www.gnu.org/prep/standards/html_node/NEWS-File.html#NEWS-File)
 
 * Support `_` prefix on template variables to avoid unused variable
   warnings, Erlang style (#164).
+
+* Switched to `eunit_formatters` by @seancribbs for improved eunit reporting.

+ 13 - 1
rebar.config

@@ -7,10 +7,22 @@
 {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,
  [{merl, ".*",
    {git, "git://github.com/erlydtl/merl.git", {branch, "erlydtl"}},
-   [raw]}
+   [raw]},
+  {eunit_formatters, ".*",
+   {git, "git://github.com/seancribbs/eunit_formatters", {branch, "master"}}}
  ]}.
 
 {pre_hooks,