question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress - add reporters options

See original GitHub issue

Please 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
mehrad-rafighcommented, Aug 16, 2020

@maiis Thank you! I will open a PR today!

2reactions
milanPandyacommented, Aug 9, 2021

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

image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found