-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not generating Junit XML test report for Failed tests for Mocha Version 8.3.2 #148
Comments
I'm also facing the same issue, it works with mocha version 7.2.0, but its failing if the mocha version is greater than that. |
I could able to resolve the issue, by using "cypress-junit-reporter":
"^1.3.1",
package.json:
"test": "./node_modules/.bin/mocha --recursive --reporter
cypress-junit-reporter --reporter-options
mochaFile=./mocha_tests_output/test-results.xml",
…On Tue, May 4, 2021 at 8:02 AM Parthiban ***@***.***> wrote:
I'm also facing the same issue, it works with mocha version 7.2.0, but its
failing if the mocha version is greater than that.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#148 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEAUH7YQSHMUFIVDAEVZJOTTL7O5RANCNFSM43AZTGQQ>
.
--
If you need any further information please feel free to contact
on:214-226-0537 or ***@***.***
Thanks&Regards
Shirisha
|
I can't reproduce with [email protected] and [email protected]. |
gabegorelick
added a commit
to gabegorelick/mocha-junit-reporter
that referenced
this issue
Oct 9, 2021
There are reports (michaelleeallen#148) of mocha-junit-reporter not working against certain versions of mocha. We really need to test more than one version of mocha to ensure that doesn't happen.
gabegorelick
added a commit
to gabegorelick/mocha-junit-reporter
that referenced
this issue
Oct 9, 2021
There are reports (michaelleeallen#148) of mocha-junit-reporter not working against certain versions of mocha. We really need to test more than one version of mocha to ensure that doesn't happen.
gabegorelick
added a commit
to gabegorelick/mocha-junit-reporter
that referenced
this issue
Oct 9, 2021
There are reports (michaelleeallen#148) of mocha-junit-reporter not working against certain versions of mocha. We really need to test more than one version of mocha to ensure that doesn't happen.
clayreimann
pushed a commit
that referenced
this issue
Oct 14, 2021
There are reports (#148) of mocha-junit-reporter not working against certain versions of mocha. We really need to test more than one version of mocha to ensure that doesn't happen.
Reproducible using mocha describe("intentional failure", () => {
expect(false).to.equal(true)
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using the mocha-junit-reporter to generate XML report to publish the test result in VSTS under tests tab .
I followed the steps provided in https://www.npmjs.com/package/mocha-junit-reporter.
In package.json i included the following script.
"scripts": {
"mochaTest": "mocha './tests/**/*Test.js' && mocha tests --reporter mocha-junit-reporter --reporter-option mochaFile=./mocha_Junit_Reporter/test-results.xml",
}
But it's generating for only passes test cases, if one case is failing then xml file is not generating /updating at all.
The text was updated successfully, but these errors were encountered: