DEV Community

Discussion on: Cypress & Mochawesome Report Setup.. Made Easy!

Collapse
 
melibe23 profile image
melibe23 • Edited

Hi, I am getting this error

C02Y53T7JGH5:getapp-cypress-testing megarcia$ npm run test:create-reports

getapp@1.0.0 test:create-reports /Users/megarcia/Desktop/getapp-original-repo/getapp-cypress-testing/getapp-cypress-te
sting
run-s cleanup:all test:cy merge_reports generate_html_report create-tree

getapp@1.0.0 cleanup:all /Users/megarcia/Desktop/getapp-original-repo/getapp-cypress-testing/getapp-cypress-testing
run-p cleanup:reports cleanup:evidence

getapp@1.0.0 cleanup:reports /Users/megarcia/Desktop/getapp-original-repo/getapp-cypress-testing/getapp-cypress-testin
g
rm -fr integration-reports/integration/public/report* && rm -fr integration-reports/integration/report*

getapp@1.0.0 cleanup:evidence /Users/megarcia/Desktop/getapp-original-repo/getapp-cypress-testing/getapp-cypress-testi
ng
rm -fr integration-reports/integration/public/videos* && rm -fr integration-reports/integration/public/screenshots*

getapp@1.0.0 test:cy /Users/megarcia/Desktop/getapp-original-repo/getapp-cypress-testing/getapp-cypress-testing
run-p --race --silent start test-no-exit

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! getapp@1.0.0 test:cy: run-p --race --silent start test-no-exit
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the getapp@1.0.0 test:cy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/megarcia/.npm/_logs/2020-07-02T15_57_45_495Z-debug.log
ERROR: "test:cy" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! getapp@1.0.0 test:create-reports: run-s cleanup:all test:cy merge_reports generate_html_report create-tree
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the getapp@1.0.0 test:create-reports script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/megarcia/.npm/_logs/2020-07-02T15_57_45_520Z-debug.log

This is my package.json (package.png)
dev-to-uploads.s3.amazonaws.com/i/...

An this is cypress.json

{
"reporterOptions": {
"reportDir": "integration-reports/integration/reports/mocha",
"quiet": true,
"html": false,
"overwrite": false,
"json": true
},
"videosFolder": "integration-reports/integration/public/videos",
"screenshotsFolder": "integration-reports/integration/public/screenshots",
"videoCompression": false,
"reporter": "mochawesome",
"browser": "electron",
"chromeWebSecurity": false
}

Any clue what I am doing wrong?

Collapse
 
cssoldiervoif profile image
Robert Dale Morris • Edited

Do you have npm-run-all installed? npmjs.com/package/npm-run-all the run-s (run synchronous) and run-p ( run in parallel) are commands from this package. Sorry for the late reply. Also, this commands (scripts) that are in your package.json are ment to be ran on Linux(bash) terminal. They will fail if running on a Windows terminal or command line.