Skip to content

Ignore test_failures if the overall status is 'succeeded'#77

Closed
jaysirju wants to merge 1 commit intodiogot:masterfrom
jaysirju:test_repetition_support
Closed

Ignore test_failures if the overall status is 'succeeded'#77
jaysirju wants to merge 1 commit intodiogot:masterfrom
jaysirju:test_repetition_support

Conversation

@jaysirju
Copy link

Addresses #73

Only parse test_failures if the overall status is not 'succeeded'. This ensures that tests that pass via test repetition do not show up as a false negative.

].flatten.compact.map do |summary|
result = Result.new(summary.message, parse_location(summary.document_location_in_creating_workspace))
Result.new(format_test_failure(result, summary.producing_target, summary.test_case_name),
if action.action_result.status != 'succeeded' then
Copy link

Choose a reason for hiding this comment

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

I'm not sure if this fully fixes the issue though. For example, If I have 2 tests, one which passed on 2nd iteration and another which failed all iterations, then this would post 2 test failures to the PR instead of just 1. Could lead to confusing results?

Copy link
Author

Choose a reason for hiding this comment

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

@jwelton you are 100% right, this really only fixes the case where the overall action succeeds with after a retry. Looking further into this, I'm wondering if this needs to be handled in the xcresult gem itself...

Choose a reason for hiding this comment

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

@nekrich
Copy link

nekrich commented Jan 12, 2024

@diogot, any chances of merging this?

@diogot
Copy link
Owner

diogot commented Feb 14, 2024

Hi, if anyone add tests for this this feature I can merge this PR.

@diogot
Copy link
Owner

diogot commented Aug 25, 2025

Closed by #98

@diogot diogot closed this Aug 25, 2025
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.

6 participants