-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[🐛 Bug]: @wdio/junit-reporter - Both Errors and Failures Incremented for Failed Tests #12710
Comments
I found the responsible code path here: webdriverio/packages/wdio-junit-reporter/src/index.ts Lines 195 to 213 in 146668c
If we can only report failures, and are able to pass in a failure message, I am happy to accept a pull request with necessary changes. All contributions are welcome. |
Thanks for reporting! We greatly appreciate any contributions that help resolve the bug. While we understand that active contributors have their own priorities, we kindly request your assistance if you rely on this bug being fixed. We encourage you to take a look at our contribution guidelines or join our friendly Discord development server, where you can ask any questions you may have. Thank you for your support, and cheers! |
Have you read the Contributing Guidelines on issues?
WebdriverIO Version
8.32.4
Node.js Version
20
Mode
WDIO Testrunner
Which capabilities are you using?
NA
What happened?
The JUnit report incorrectly increments both the "errors" and "failures" counts when a test case fails. Seems, failures and errors are being treated similarly - link
What is your expected behavior?
Only the "failures" count should increase for failed tests. JUnit reports typically distinguish between errors (unexpected exceptions) and failures (asserted conditions not met).
JUnit Schema Links
How to reproduce the bug.
Test Case Expected Output Reference
Relevant log output
NA
Code of Conduct
Is there an existing issue for this?
The text was updated successfully, but these errors were encountered: