Skip to content

Commit d8bb2d2

Browse files
authored
Merge pull request #4 from CodinGame/refact_change_default_behavior
refact: change the output default behavior
2 parents b4a3469 + d67d8c3 commit d8bb2d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/codingame/codemachine/runner/junit/JUnitTestListRunner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import static java.util.Collections.singletonList;
2525

2626
public class JUnitTestListRunner {
27-
private static final String DEFAULT_OUTPUT = "/project/results/executions.json";
27+
private static final String DEFAULT_OUTPUT = "-";
2828

2929
private static RunLogDto parseThrowable(Throwable t) {
3030
RunLogDto runLog = new RunLogDto();
@@ -147,7 +147,7 @@ public void testFinished(Description description) throws Exception {
147147

148148
String resultOutput = System.getProperty("codingame.junit-runner.output", DEFAULT_OUTPUT);
149149
String resultStr = new Gson().toJson(results);
150-
if ("-".equals(resultOutput)) {
150+
if (DEFAULT_OUTPUT.equals(resultOutput)) {
151151
realOut.println(resultStr);
152152
}
153153
else {

0 commit comments

Comments
 (0)