-
Notifications
You must be signed in to change notification settings - Fork 65
Run UI tests with both renderers #877
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,23 @@ let shouldRecord: Bool? = nil | |
| #else | ||
| @_exported import SwiftUI | ||
| let shouldRecord: Bool? = true | ||
|
|
||
| public struct ViewRendererVendor: RawRepresentable, Hashable, CaseIterable { | ||
| public let rawValue: String | ||
|
|
||
| public init(rawValue: String) { | ||
| self.rawValue = rawValue | ||
| } | ||
|
|
||
| /// OpenSwiftUI's view renderer. | ||
| public static let osui = ViewRendererVendor(rawValue: "org.OpenSwiftUIProject.OpenSwiftUI") | ||
|
|
||
| /// Apple's SwiftUI view renderer. | ||
| public static let sui = ViewRendererVendor(rawValue: "com.apple.SwiftUI") | ||
|
|
||
| public static var allCases: [ViewRendererVendor] { [.osui, .sui] } | ||
| } | ||
| public let viewRendererVendor = ViewRendererVendor.sui | ||
| #endif | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Severity: high Other Locations
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage. |
||
| let diffTool: SnapshotTestingConfiguration.DiffTool = .odiff | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
With
rendereradded as a matrix axis, this matrix still relies on anincludeentry that doesn’t specifyrenderer; that can produce an extra job wherematrix.renderer.*is unset (and/or leave the base combinations withoutios-simulator-name). Consider ensuring every generated matrix row defines bothios-simulator-nameandrenderer.Severity: high
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.