Created
December 28, 2015 18:38
-
-
Save ixmatus/324bb54967a8d62d192d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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