cypress-mochawesome-reporter
Advanced tools
Comparing version
@@ -6,3 +6,3 @@ const path = require('path'); | ||
async function mergeAndCreate({ jsonDir, output }) { | ||
async function mergeAndCreate({ jsonDir, output, mochawesomeOptions }) { | ||
const report = await merge({ | ||
@@ -12,3 +12,3 @@ files: [jsonDir.concat('/*.json')], | ||
const html = await reportGenerator.create(report, { reportDir: output }); | ||
const html = await reportGenerator.create(report, { reportDir: output, ...mochawesomeOptions }); | ||
@@ -26,5 +26,5 @@ return html[0]; | ||
async function generateReport({ jsonDir, screenshotsDir, output }) { | ||
async function generateReport({ jsonDir, screenshotsDir, output, ...mochawesomeOptions }) { | ||
const [htmlPath] = await Promise.all([ | ||
mergeAndCreate({ jsonDir, output }), | ||
mergeAndCreate({ jsonDir, output, mochawesomeOptions }), | ||
copyScreenShotsDir({ screenshotsDir, output }), | ||
@@ -31,0 +31,0 @@ ]); |
{ | ||
"name": "cypress-mochawesome-reporter", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Zero config Mochawesome reporter for Cypress with screenshots", | ||
@@ -19,3 +19,7 @@ "engines": { | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"lerna": "lerna", | ||
"install-examples": "lerna exec --scope @example/* \"npm i\"", | ||
"test:prepare": "lerna run --stream --no-bail --concurrency 1 --scope @example/* serve-test-report", | ||
"test": "cypress run", | ||
"cypress:open": "cypress open" | ||
}, | ||
@@ -30,8 +34,12 @@ "keywords": [ | ||
"fs-extra": "^9.0.0", | ||
"yargs": "^15.3.1", | ||
"mocha": "^7.1.1", | ||
"mochawesome": "^6.1.0", | ||
"mochawesome-merge": "^4.0.3", | ||
"mochawesome-report-generator": "^5.1.0" | ||
"mochawesome-report-generator": "^5.1.0", | ||
"yargs": "^15.3.1" | ||
}, | ||
"devDependencies": { | ||
"cypress": "^5.5.0", | ||
"lerna": "^3.22.1" | ||
}, | ||
"files": [ | ||
@@ -38,0 +46,0 @@ "bin", |
@@ -62,2 +62,4 @@ # cypress-mochawesome-reporter | ||
You can also pass [mochawesome-report-generator CLI flags](https://github.com/adamgruber/mochawesome-report-generator#cli-flags) | ||
## Exmaples | ||
@@ -67,2 +69,3 @@ | ||
2. [Using `cypress-multi-reporters`](examples/multiple-reporters) | ||
3. [With `mochawesome-report-generator` CLI flags](examples/simple) | ||
@@ -69,0 +72,0 @@ ``` |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
7634
7.89%1
-50%78
4%2
Infinity%