Skip to content

Handle successful test with failed assertions during Junit report generation #367

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

Merged
merged 3 commits into from
Mar 16, 2025

Conversation

acecilia
Copy link
Contributor

@acecilia acecilia commented Oct 30, 2024

👋

Handle successful test with failed assertions during Junit report generation. See code for details.

Context: I experienced the edge case of a test with a failed assertion, but success status:

Screenshot 2024-10-31 at 03 55 36

<testsuites name='JUnitReportName&lt;&apos;&amp;\&gt;' tests='1' failures='1'>
<testsuite name='JUnitReportTestSuiteName&lt;&apos;&amp;\&gt;' tests='1' failures='1'>
<testsuites name='JUnitReportName&lt;&apos;&amp;\&gt;' tests='1' failures='1' skipped='0'>
<testsuite name='JUnitReportTestSuiteName&lt;&apos;&amp;\&gt;' tests='1' failures='1' skipped='0'>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes I believe are leftovers from previous PR here

@acecilia
Copy link
Contributor Author

@tylervick any chance you could have a look? 🙏

@acecilia
Copy link
Contributor Author

Any chance to get this through @tylervick ?

@tylervick tylervick merged commit a6e74fd into XCTestHTMLReport:main Mar 16, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants