testcafe-reporter-spec-time
Advanced tools
Comparing version 3.0.1 to 4.0.0
10
index.js
@@ -15,3 +15,2 @@ exports.default = createReporter | ||
currentFixtureName: null, | ||
timings: Object.create(null), | ||
@@ -79,6 +78,3 @@ reportTaskStart (startTime, userAgents, testCount) { | ||
reportTestStart (name, meta) { | ||
const key = this.currentFixtureName + ' ' + name | ||
this.timings[key] = Date.now() | ||
}, | ||
reportTestStart (name, meta) {}, | ||
@@ -117,6 +113,4 @@ reportTestDone (name, testRunInfo) { | ||
const key = this.currentFixtureName + ' ' + name | ||
const duration = Date.now() - this.timings[key] | ||
this.write(title) | ||
this.write(' ' + this.chalk.grey('(' + this.fmtTime(duration) + ')')) | ||
this.write(' ' + this.chalk.grey('(' + this.fmtTime(testRunInfo.durationMs) + ')')) | ||
@@ -123,0 +117,0 @@ if (hasErr) { |
{ | ||
"name": "testcafe-reporter-spec-time", | ||
"version": "3.0.1", | ||
"version": "4.0.0", | ||
"description": "A testcafe reporter with timing information", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/Raynos/testcafe-reporter-spec-time", |
114647
449