Skip to content

Instantly share code, notes, and snippets.

@ixmatus
Created December 28, 2015 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ixmatus/324bb54967a8d62d192d to your computer and use it in GitHub Desktop.
Save ixmatus/324bb54967a8d62d192d to your computer and use it in GitHub Desktop.
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