Cypress - add reporters options
See original GitHub issuePlease make sure you have read the submission guidelines before posting an issue
Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
- I am running the latest version
- I checked the documentation (nx.dev) and found no answer
- I checked to make sure that this issue has not already been filed
- I’m reporting the issue to the correct repository (not related to React, Angular or any dependency)
Expected Behavior
We would like to pass reporter
and reporterOptions
to Cypress
Current Behavior
These options are not supported, checked on https://nx.dev/angular/cli/e2e#cypress-options
Steps to Reproduce
nx e2e myapp-e2e --reporter junit --reporter-options 'mochaFile=reports/results-[hash].xml,toConsole=true'
Context
@nrwl/angular : 9.1.2
@nrwl/cli : 9.1.2
@nrwl/cypress : 9.1.2
@nrwl/eslint-plugin-nx : Not Found
@nrwl/express : Not Found
@nrwl/jest : 9.1.2
@nrwl/linter : Not Found
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 9.1.2
@nrwl/web : Not Found
@nrwl/workspace : 9.1.2
typescript : 3.7.5
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Reporters | Cypress Documentation
Some reporters accept options that customize their behavior. These can be specified in your Cypress configuration or via command line options. Reporter options...
Read more >3 Steps to Awesome Test Reports with Cypress - Medium
3 Steps to Awesome Test Reports with Cypress · Step 1 — set up the reporter · Step 2 — generate the report...
Read more >Understanding Cypress HTML Reporter - BrowserStack
This guide explores the in-built reporting tool Cypress HTML Reporter and how to generate Cypress HTML Reports.
Read more >cypress-mochawesome-reporter - npm
Zero config Mochawesome reporter for Cypress with screenshots. Latest version: 3.2.3, last published: 3 months ago.
Read more >Cypress - Reports - Tutorialspoint
In addition to that Cypress has other third party reporters like JUnit and teamcity. Mochawesome Report. The Mochawesome report is one of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@maiis Thank you! I will open a PR today!
Hi @mehrad-rafigh , do you have any update on your investigation of reporter options through cypress.json file not getting picked up? Even I am facing similar issue if reporter is present in cypress.json file.
The correct location of cypress-multi-reporter is C:\work\dir-name\node_modules\cypress-multi-reporters
Update: Turns out it is a Cypress issue and not an nx one. https://github.com/cypress-io/cypress/issues/6406