@dollarshaveclub/e2e
Advanced tools
Comparing version 2.1.0-rc.1 to 2.1.0-rc.2
@@ -405,3 +405,14 @@ const debug = require('debug')('dsc-e2e:lib:run-test') | ||
result.error = err | ||
if (this.eventsEmitter) this.eventsEmitter.emit('run-step.timeout', { testId: this.context.test.id, stepName: name }) | ||
// Metrics Events | ||
if (this.eventsEmitter) { | ||
if (result.error.code) { | ||
this.eventsEmitter.emit('run-step.assertion-failure', { testId: this.context.test.id }) | ||
} else if (!result.error.code) { // Timeouts don't have an error code attached | ||
this.eventsEmitter.emit('run-step.timeout', { testId: this.context.test.id, stepName: name }) | ||
} | ||
this.eventsEmitter.emit('run-step.failure', { testId: this.context.test.id }) | ||
} | ||
return false // SKIP | ||
@@ -408,0 +419,0 @@ } finally { |
{ | ||
"name": "@dollarshaveclub/e2e", | ||
"version": "2.1.0-rc.1", | ||
"version": "2.1.0-rc.2", | ||
"description": "Make End-to-End Testing Great for Once", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
40821
998