@ -152,19 +152,19 @@ CodeOceanEditorEvaluation = {
|
|||||||
var element = this.findOrCreateOutputElement(index);
|
var element = this.findOrCreateOutputElement(index);
|
||||||
if (!colorize) {
|
if (!colorize) {
|
||||||
if (output.stdout != undefined && output.stdout != '') {
|
if (output.stdout != undefined && output.stdout != '') {
|
||||||
element.append(output.stdout)
|
element.text(element.text() + output.stdout)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (output.stderr != undefined && output.stderr != '') {
|
if (output.stderr != undefined && output.stderr != '') {
|
||||||
element.append('StdErr: ' + output.stderr);
|
element.text('StdErr: ' + element.text() + output.stderr);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (output.stderr) {
|
} else if (output.stderr) {
|
||||||
element.addClass('text-warning').append(output.stderr);
|
element.addClass('text-warning').text(element.text() + output.stderr);
|
||||||
this.flowrOutputBuffer += output.stderr;
|
this.flowrOutputBuffer += output.stderr;
|
||||||
this.QaApiOutputBuffer.stderr += output.stderr;
|
this.QaApiOutputBuffer.stderr += output.stderr;
|
||||||
} else if (output.stdout) {
|
} else if (output.stdout) {
|
||||||
element.addClass('text-success').append(output.stdout);
|
element.addClass('text-success').text(element.text() + output.stdout);
|
||||||
this.flowrOutputBuffer += output.stdout;
|
this.flowrOutputBuffer += output.stdout;
|
||||||
this.QaApiOutputBuffer.stdout += output.stdout;
|
this.QaApiOutputBuffer.stdout += output.stdout;
|
||||||
} else {
|
} else {
|
||||||
|
@ -2,7 +2,7 @@ class JunitAdapter < TestingFrameworkAdapter
|
|||||||
COUNT_REGEXP = /Tests run: (\d+)/
|
COUNT_REGEXP = /Tests run: (\d+)/
|
||||||
FAILURES_REGEXP = /Failures: (\d+)/
|
FAILURES_REGEXP = /Failures: (\d+)/
|
||||||
SUCCESS_REGEXP = /OK \((\d+) test[s]?\)/
|
SUCCESS_REGEXP = /OK \((\d+) test[s]?\)/
|
||||||
ASSERTION_ERROR_REGEXP = /java\.lang\.AssertionError:\s(.*)|org\.junit\.ComparisonFailure:\s(.*)/
|
ASSERTION_ERROR_REGEXP = /java\.lang\.AssertionError:?\s(.*?)\tat org.junit|org\.junit\.ComparisonFailure:\s(.*?)\tat org.junit/m
|
||||||
|
|
||||||
def self.framework_name
|
def self.framework_name
|
||||||
'JUnit'
|
'JUnit'
|
||||||
|
Reference in New Issue
Block a user