summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulian Squires <julian@cipht.net>2015-11-23 10:16:55 -0500
committerJulian Squires <julian@cipht.net>2015-12-01 08:14:10 -0500
commit6140ef6e67e1fb4072375c381140a79211c5ff0e (patch)
tree10287aa88791b596b39fcf4b757a6ee984a1edc5 /src
parent4b9a0835af33fe9b4f3840c000a6a5fb8df3e180 (diff)
Default to no eunit formatter if verbose specified
The previous default meant that verbose output would not be emitted.
Diffstat (limited to 'src')
-rw-r--r--src/rebar_prv_eunit.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_prv_eunit.erl b/src/rebar_prv_eunit.erl
index 4078aa7..b9ac6b8 100644
--- a/src/rebar_prv_eunit.erl
+++ b/src/rebar_prv_eunit.erl
@@ -346,7 +346,8 @@ resolve_eunit_opts(State) ->
true -> set_verbose(EUnitOpts);
false -> EUnitOpts
end,
- case proplists:get_value(eunit_formatters, EUnitOpts1, true) of
+ IsVerbose = lists:member(verbose, EUnitOpts1),
+ case proplists:get_value(eunit_formatters, EUnitOpts1, not IsVerbose) of
true -> custom_eunit_formatters(EUnitOpts1);
false -> EUnitOpts1
end.