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

Fail UI test run when all tests are inconclusive #17971

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

jfversluis
Copy link
Member

Description of Change

After upgrading our UITest dependency to a new version suddenly all tests would pass on iOS. Upon further inspection we noticed that the tests in fact didn't run, but they were all marked inconclusive. However, that would not fail the test run/pipeline and so the no running of tests might go undetected.

This adds a safeguard that looks at the test results XML file and check if the number of total tests ran and the number of inconclusive tests are the same. If they are, no tests ran and we thrown an exception.

Issues Fixed

Fixes #17945

Related

#17931

@rmarinho rmarinho merged commit efd890b into main Oct 12, 2023
@rmarinho rmarinho deleted the fail-testrun-on-inconclusive branch October 12, 2023 15:47
@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 2023
@samhouts samhouts added the fixed-in-8.0.6 Look for this fix in 8.0.6 SR1! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing Unit tests, device tests fixed-in-8.0.6 Look for this fix in 8.0.6 SR1! t/housekeeping ♻︎
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UITests] Legacy iOS tests currently not producing results on main
5 participants