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

Get watchOS tests running in CI #311

Merged
merged 4 commits into from
Apr 23, 2024
Merged

Get watchOS tests running in CI #311

merged 4 commits into from
Apr 23, 2024

Conversation

dfed
Copy link
Collaborator

@dfed dfed commented Apr 23, 2024

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.

@dfed dfed self-assigned this Apr 23, 2024
@codecov-commenter
Copy link

codecov-commenter commented Apr 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.66%. Comparing base (4ca4f30) to head (dc12a92).
Report is 7 commits behind head on master.

❗ Current head dc12a92 differs from pull request most recent head a292670. Consider uploading reports for the commit a292670 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            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     

see 3 files with indirect coverage changes

@@ -72,7 +72,7 @@ class SecureEnclaveIntegrationTests: XCTestCase

func test_secureEnclaveSharedGroupValetsWithDifferingIdentifiers_canNotAccessSameData() throws
{
guard testEnvironmentIsSigned() && testEnvironmentSupportsWhenPasscodeSet() else {
guard testEnvironmentIsSignedOrDoesNotRequireEntitlement() && testEnvironmentSupportsWhenPasscodeSet() else {
Copy link
Collaborator Author

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

@dfed dfed marked this pull request as ready for review April 23, 2024 07:35
Comment on lines 20 to 25
'iOS_14,tvOS_14,watchOS_7',
'iOS_13,tvOS_13,watchOS_6',
'iOS_14',
'tvOS_14',
'watchOS_7',
'iOS_13',
'tvOS_13',
'watchOS_6',
Copy link
Collaborator Author

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

Base automatically changed from dfed--xcode-15 to master April 23, 2024 15:31
* 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.
Copy link
Collaborator Author

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.

Comment on lines -1 to -3
[submodule "Tests/xctest-watchOS"]
path = Tests/XCTest-watchOS
url = https://github.com/dfed/XCTest-watchOS.git
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👋

@dfed
Copy link
Collaborator Author

dfed commented Apr 23, 2024

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.

@dfed dfed merged commit 37c0dfc into master Apr 23, 2024
23 checks passed
@dfed dfed deleted the dfed--watch-ci branch April 23, 2024 15:56
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.

Run Watch tests in CI
2 participants