Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
case lists:keytake(eunit_opts, 1, CONFIG) of
false -> CONFIG;
{value, {eunit_opts, Opts}, CONFIG1} ->
GetEnvDef = fun(Default) ->
case os:getenv("SUREFIRE_DIR") of
false -> Default;
V -> V
end
end,
NewOpts = Opts ++ [{report, {eunit_surefire, [{dir, GetEnvDef("./surefire_results")}]}}],
lists:keyreplace( eunit_opts
, 1
, CONFIG1
, {eunit_opts, NewOpts}
)
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.