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

Enable Full Support for Multiple XCTest/XCUITest Cases configured in xctestrun File #563

Merged
merged 7 commits into from
Feb 12, 2025

Conversation

bahrimootaz
Copy link
Contributor

@bahrimootaz bahrimootaz commented Feb 11, 2025

Description
This PR extends the support for xctestrun files with format version 2, building on the initial implementation merged in #559.

With this update, we enable full support for XCUITests by utilizing the parsed test configurations from an xctestrun file.

Testing :
The following scenarios were tested to validate the changes:

✅ Single XCTest case
✅ Single XCUITest case
✅ Single XCUITest case targeting system app
✅ Multiple XCTest cases targeting the same app
✅ Multiple XCTest cases targeting different apps
✅ Multiple XCUITest cases targeting the expected app
✅ Mixed XCUITest and XCTest cases targeting the expected app
✅ Mixed XCUITest and XCTest cases targeting different apps

These enhancements ensure that go-ios can reliably handle diverse test configurations parsed from an xctestrun file in both format versions.

…trun file (#5)

* Enable support for multiple XCTest/XCUITest cases configured in xctestrun file.

* move the place of one testing method

* Update tests
Comment on lines 259 to 260
svc, _ := installationproxy.New(device)
installedApps, _ := svc.BrowseUserApps()
Copy link
Collaborator

Choose a reason for hiding this comment

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

are the errors ignored intentionally here?
Also, svc needs to be closed after we're done

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We introduced a new method to get the installedApps list. errors should not block running the tests

@dmissmann dmissmann merged commit 35e364b into danielpaulus:main Feb 12, 2025
2 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