Skip to content

Commit

Permalink
support showOutput and outputToFormatters properties of JUnit task -- f…
Browse files Browse the repository at this point in the history
…ixes #1
  • Loading branch information
scarytom committed Dec 18, 2013
1 parent 5e718c2 commit 0eef59e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/org/netmelody/panto/internal/RecordingJUnitTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public final class RecordingJUnitTask {
private boolean haltOnError;
private String failureProperty;
private File tempDir;
private boolean showOutput;
private boolean outputToFormatters = true;

public RecordingJUnitTask(Project project) {
this.project = project;
Expand Down Expand Up @@ -78,6 +80,14 @@ public void setFailureProperty(String propertyName) {
this.failureProperty = propertyName;
}

public void setShowOutput(boolean showOutput) {
this.showOutput = showOutput;
}

public void setOutputToFormatters(boolean outputToFormatters) {
this.outputToFormatters = outputToFormatters;
}

public RecordingJvmArg createJvmarg() {
final RecordingJvmArg result = new RecordingJvmArg();
jvmArgs.add(result);
Expand Down Expand Up @@ -140,6 +150,8 @@ public JUnitTask spawnTaskForStripe(int stripeNumber, int stripeCount) {
junit.setHaltonerror(haltOnError);
junit.setHaltonfailure(haltOnFail);
junit.setFailureProperty(failureProperty);
junit.setShowOutput(showOutput);
junit.setOutputToFormatters(outputToFormatters);
junit.setTempdir(tempDir);

for (Environment.Variable sysProp : sysproperties) {
Expand Down

0 comments on commit 0eef59e

Please sign in to comment.