Test duration in JUnit is reported in seconds rather than miliseconds...

This commit is contained in:
Kelvin Luck 2013-01-08 10:09:55 +00:00
parent 28189d7f05
commit e8e95dbbca
2 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@
var failures = 0,
data = {
name: getNestedSuiteName(suite),
time: suite.duration,
time: suite.duration / 1000,
timestamp: suite.timestamp,
tests: suite.specs().length,
errors: 0, // TODO: These exist in the JUnit XML but not sure how they map to jasmine things
@ -50,7 +50,7 @@
return {
className: getNestedSuiteName(spec.suite),
name: spec.description,
time: spec.duration,
time: spec.duration / 1000,
failureMessage: failureMessages.join(' ')
};
}

View File

@ -211,7 +211,7 @@
var failures = 0,
data = {
name: getNestedSuiteName(suite),
time: suite.duration,
time: suite.duration / 1000,
timestamp: suite.timestamp,
tests: suite.specs().length,
errors: 0, // TODO: These exist in the JUnit XML but not sure how they map to jasmine things
@ -233,7 +233,7 @@
return {
className: getNestedSuiteName(spec.suite),
name: spec.description,
time: spec.duration,
time: spec.duration / 1000,
failureMessage: failureMessages.join(' ')
};
}