mocha-junit-reporter option doesn't work
See original GitHub issueCurrent behavior:
mocha-junit-reporter always sets name="<fullTitle>"
and classname="<title>"
regardless of testCaseSwitchClassnameAndName
option value.
Option is described here: https://github.com/michaelleeallen/mocha-junit-reporter Here is mocha-junit-reporter code: https://github.com/michaelleeallen/mocha-junit-reporter/blob/c55dc223886ec2cd050d5011e6e61c52d75d4371/index.js#L190
Desired behavior:
should switch name
and classname
when testCaseSwitchClassnameAndName
is true
Steps to reproduce:
cypress.json:
{
"reporter": "junit",
"reporterOptions": {
"mochaFile": "results/[hash].xml",
"testCaseSwitchClassnameAndName": true
}
}
Versions
Cypress: 3.0.2 Browser: Electron 59 (headless)
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
mocha-junit-reporter - npm
A JUnit reporter for mocha.. Latest version: 2.2.0, last published: a month ago. Start using mocha-junit-reporter in your project by running ...
Read more >Mocha JUnit reporter UnhandledPromiseRejectionWarning
I'm trying to make this example work in my Azure Devops Pipeline. https://mochajs.org/#getting-started. First I tried to have my own tests ...
Read more >cypress-io/cypress - Gitter
Hi guys, I'm trying to have multiple reporter (HTML & xml) using mochawesome and mocha-multi-reporters but I'm keep getting error Cannot set property...
Read more >Mocha documentation — DevDocs
npm install mocha $ mkdir test $ $EDITOR test/test.js # or open with your ... Mocha validates any custom reporters or interfaces which...
Read more >Detect, track, and eliminate flaky Mocha tests - BuildPulse
Generate JUnit XML reports for test results · Add mocha-junit-reporter and mocha-multi-reporters as development dependencies. · Create a mocha-reporter-config.
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 FreeTop 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
Top GitHub Comments
@Karolis92 Why is it that you have
reporter
option set tojunit
and not set tomocha-junit-reporter
?Sorry, not working with that project anymore 😃 But like I said, we have put reporter dependencies to our project to be independent from cypress updates 😃