Test duration in JUnit is reported in seconds rather than miliseconds...
This commit is contained in:
parent
28189d7f05
commit
e8e95dbbca
@ -28,7 +28,7 @@
|
|||||||
var failures = 0,
|
var failures = 0,
|
||||||
data = {
|
data = {
|
||||||
name: getNestedSuiteName(suite),
|
name: getNestedSuiteName(suite),
|
||||||
time: suite.duration,
|
time: suite.duration / 1000,
|
||||||
timestamp: suite.timestamp,
|
timestamp: suite.timestamp,
|
||||||
tests: suite.specs().length,
|
tests: suite.specs().length,
|
||||||
errors: 0, // TODO: These exist in the JUnit XML but not sure how they map to jasmine things
|
errors: 0, // TODO: These exist in the JUnit XML but not sure how they map to jasmine things
|
||||||
@ -50,7 +50,7 @@
|
|||||||
return {
|
return {
|
||||||
className: getNestedSuiteName(spec.suite),
|
className: getNestedSuiteName(spec.suite),
|
||||||
name: spec.description,
|
name: spec.description,
|
||||||
time: spec.duration,
|
time: spec.duration / 1000,
|
||||||
failureMessage: failureMessages.join(' ')
|
failureMessage: failureMessages.join(' ')
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -211,7 +211,7 @@
|
|||||||
var failures = 0,
|
var failures = 0,
|
||||||
data = {
|
data = {
|
||||||
name: getNestedSuiteName(suite),
|
name: getNestedSuiteName(suite),
|
||||||
time: suite.duration,
|
time: suite.duration / 1000,
|
||||||
timestamp: suite.timestamp,
|
timestamp: suite.timestamp,
|
||||||
tests: suite.specs().length,
|
tests: suite.specs().length,
|
||||||
errors: 0, // TODO: These exist in the JUnit XML but not sure how they map to jasmine things
|
errors: 0, // TODO: These exist in the JUnit XML but not sure how they map to jasmine things
|
||||||
@ -233,7 +233,7 @@
|
|||||||
return {
|
return {
|
||||||
className: getNestedSuiteName(spec.suite),
|
className: getNestedSuiteName(spec.suite),
|
||||||
name: spec.description,
|
name: spec.description,
|
||||||
time: spec.duration,
|
time: spec.duration / 1000,
|
||||||
failureMessage: failureMessages.join(' ')
|
failureMessage: failureMessages.join(' ')
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user