summaryrefslogtreecommitdiff
path: root/src/rebar_prv_eunit.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-12-01 08:55:17 -0600
committerTristan Sloughter <t@crashfast.com>2015-12-01 08:55:17 -0600
commit2de7ce25e47b994a98ff02a991850af269b7b30f (patch)
tree10287aa88791b596b39fcf4b757a6ee984a1edc5 /src/rebar_prv_eunit.erl
parent4b9a0835af33fe9b4f3840c000a6a5fb8df3e180 (diff)
parent6140ef6e67e1fb4072375c381140a79211c5ff0e (diff)
Merge pull request #935 from tokenrove/fix-eunit-verbose
Default to no eunit formatter if verbose specified
Diffstat (limited to 'src/rebar_prv_eunit.erl')
-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.