-
Notifications
You must be signed in to change notification settings - Fork 218
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
Get watchOS tests running in CI #311
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #311 +/- ##
==========================================
- Coverage 86.81% 82.66% -4.16%
==========================================
Files 16 16
Lines 986 992 +6
==========================================
- Hits 856 820 -36
- Misses 130 172 +42 |
@@ -72,7 +72,7 @@ class SecureEnclaveIntegrationTests: XCTestCase | |||
|
|||
func test_secureEnclaveSharedGroupValetsWithDifferingIdentifiers_canNotAccessSameData() throws | |||
{ | |||
guard testEnvironmentIsSigned() && testEnvironmentSupportsWhenPasscodeSet() else { | |||
guard testEnvironmentIsSignedOrDoesNotRequireEntitlement() && testEnvironmentSupportsWhenPasscodeSet() else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is what led me to #313
.github/workflows/ci.yml
Outdated
'iOS_14,tvOS_14,watchOS_7', | ||
'iOS_13,tvOS_13,watchOS_6', | ||
'iOS_14', | ||
'tvOS_14', | ||
'watchOS_7', | ||
'iOS_13', | ||
'tvOS_13', | ||
'watchOS_6', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
split this out for faster iteration because we have the machines
* Actually fail CI when tests fail * Throw when we encounter errors * Remove builds with Xcode that do not support Swift Concurrency * Use appropriate Xcode for the job * More tests require signed environments now * Fix macOS 14 test sdk * Use correct simulator name * Do not embed watchOS * Massage compiler * Remove unnecessary Valet watchOS Test Host App.app * New watch host target * simpler * stop testing watchOS_8 * Xcode 13 or later
* Xcode 12.5 or later. | ||
* Xcode 13.0 or later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow-up to #308 now that CI is working.
[submodule "Tests/xctest-watchOS"] | ||
path = Tests/XCTest-watchOS | ||
url = https://github.com/dfed/XCTest-watchOS.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋
This is not an API change - it only affects CI. Merging pre-review to get CI working again + adding watch coverage. Happy to address feedback post-merge. |
Resolves #128.
We don't have coverage for all watchOS versions, but it's better than what we had.
A good amount of work is from #312 and #313 – it's worth reviewing my comments there.