Skip to content
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

fix: resolve flaky tests counts discrepancy #2536

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SelaseKay
Copy link
Collaborator

@SelaseKay SelaseKay commented Oct 31, 2024

Description

This PR addresses an issue with the JUnit XML output generated by Flank, where the flakes attribute in the root <testsuite> tag did not accurately reflect the total number of flaky test cases. This issue typically occurs when the max-test-shards property is specified in your flank.yml. The fix ensures that the flakes count aligns with the actual number of flaky tests.

Fixes #2504

Test Plan

  • Added a unit test (merge flakes) that verifies the flakes attribute correctly reflects the total number of flaky tests.
  • The test fails if the fix is omitted.

Checklist

  • Documented
  • Unit tested
  • Integration tests updated

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.

Flakes attribute never set correctly in FullJunitReport.xml
2 participants