json-reporter
Advanced tools
Comparing version 2.2.0 to 3.0.0
@@ -25,3 +25,3 @@ 'use strict'; | ||
addFail(result) { | ||
const {message, stack} = result.err; | ||
const {startTime, duration, err: {message, stack}} = result; | ||
@@ -31,3 +31,3 @@ this._addTestResult(result, { | ||
errorReason: {message, stack}, | ||
retries: [{message, stack}] | ||
retries: [{message, stack, startTime, duration}] | ||
}); | ||
@@ -48,3 +48,3 @@ } | ||
addError(result) { | ||
const {message, stack} = result; | ||
const {message, stack, startTime, duration} = result; | ||
@@ -54,3 +54,3 @@ this._addTestResult(result, { | ||
errorReason: {message, stack}, | ||
retries: [{message, stack}] | ||
retries: [{message, stack, startTime, duration}] | ||
}); | ||
@@ -57,0 +57,0 @@ } |
{ | ||
"name": "json-reporter", | ||
"version": "2.2.0", | ||
"version": "3.0.0", | ||
"description": "Common plugin for gemini and hermione which is intended to aggregate the results of tests running", | ||
"main": "gemini.js", | ||
"main": "hermione.js", | ||
"scripts": { | ||
@@ -22,6 +22,5 @@ "lint": "eslint .", | ||
"engines": { | ||
"node": ">= 6" | ||
"node": ">= 18" | ||
}, | ||
"keywords": [ | ||
"gemini", | ||
"hermione", | ||
@@ -28,0 +27,0 @@ "plugin", |
@@ -8,3 +8,2 @@ # json-reporter | ||
* [gemini](https://github.com/gemini-testing/gemini) | ||
* [hermione](https://github.com/gemini-testing/hermione) | ||
@@ -14,4 +13,3 @@ | ||
You can read more about gemini plugins [here](https://github.com/gemini-testing/gemini/blob/master/doc/plugins.md) | ||
and hermione plugins [here](https://github.com/gemini-testing/hermione#plugins). | ||
You can read more about hermione plugins [here](https://github.com/gemini-testing/hermione#plugins). | ||
@@ -34,19 +32,2 @@ ## Installation | ||
### Gemini usage | ||
Add plugin to your `gemini` config file: | ||
```js | ||
module.exports = { | ||
// ... | ||
plugins: { | ||
'json-reporter/gemini': { | ||
enabled: true, | ||
path: 'my/custom/report.json' | ||
} | ||
}, | ||
//... | ||
} | ||
``` | ||
### Hermione usage | ||
@@ -53,0 +34,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
16646
12
178
63