json-reporter
Advanced tools
Comparing version 1.2.1 to 2.0.0
@@ -5,2 +5,17 @@ # Change Log | ||
<a name="2.0.0"></a> | ||
# [2.0.0](https://github.com/gemini-testing/json-reporter/compare/v1.2.1...v2.0.0) (2019-01-14) | ||
### Features | ||
* save fail message with fail stacktrace ([631de93](https://github.com/gemini-testing/json-reporter/commit/631de93)) | ||
### BREAKING CHANGES | ||
* new API for errors and fails | ||
<a name="1.2.1"></a> | ||
@@ -7,0 +22,0 @@ ## [1.2.1](https://github.com/gemini-testing/json-reporter/compare/v1.2.0...v1.2.1) (2019-01-09) |
@@ -25,8 +25,8 @@ 'use strict'; | ||
addFail(result) { | ||
const error = result.err.stack; | ||
const {message, stack} = result.err; | ||
this._addTestResult(result, { | ||
status: 'fail', | ||
errorReason: error, | ||
retries: [{error}] | ||
errorReason: {message, stack}, | ||
retries: [{message, stack}] | ||
}); | ||
@@ -47,8 +47,8 @@ } | ||
addError(result) { | ||
const error = result.stack || result.message || ''; | ||
const {message, stack} = result; | ||
this._addTestResult(result, { | ||
status: 'error', | ||
errorReason: error, | ||
retries: [{error}] | ||
errorReason: {message, stack}, | ||
retries: [{message, stack}] | ||
}); | ||
@@ -55,0 +55,0 @@ } |
{ | ||
"name": "json-reporter", | ||
"version": "1.2.1", | ||
"version": "2.0.0", | ||
"description": "Common plugin for gemini and hermione which is intended to aggregate the results of tests running", | ||
@@ -5,0 +5,0 @@ "main": "gemini.js", |
19128