File tree Expand file tree Collapse file tree 7 files changed +27
-1
lines changed Expand file tree Collapse file tree 7 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ test-macos:
3
3
-scheme MarkdownUI \
4
4
-destination platform=" macOS"
5
5
6
+ test-macos-maccatalyst :
7
+ xcodebuild test \
8
+ -scheme MarkdownUI \
9
+ -destination platform=" macOS,variant=Mac Catalyst"
10
+
6
11
test-ios :
7
12
xcodebuild test \
8
13
-scheme MarkdownUI \
@@ -18,7 +23,7 @@ test-watchos:
18
23
-scheme MarkdownUI \
19
24
-destination platform=" watchOS Simulator,name=Apple Watch SE (40mm) (2nd generation)"
20
25
21
- test : test-macos test-ios test-tvos test-watchos
26
+ test : test-macos test-macos-maccatalyst test- ios test-tvos test-watchos
22
27
23
28
format :
24
29
swift format --in-place --recursive .
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ let package = Package(
8
8
. macOS( . v12) ,
9
9
. iOS( . v15) ,
10
10
. tvOS( . v15) ,
11
+ . macCatalyst( . v15) ,
11
12
. watchOS( . v8) ,
12
13
] ,
13
14
products: [
Original file line number Diff line number Diff line change 8
8
final class MarkdownImageTests : XCTestCase {
9
9
private let layout = SwiftUISnapshotLayout . device ( config: . iPhone8)
10
10
11
+ override func setUpWithError( ) throws {
12
+ try XCTSkipIf ( UIDevice . current. userInterfaceIdiom == . pad, " Skipping on Mac Catalyst " )
13
+ }
14
+
11
15
func testFailingImage( ) {
12
16
let view = Markdown {
13
17
#"""
Original file line number Diff line number Diff line change 8
8
final class MarkdownListTests : XCTestCase {
9
9
private let layout = SwiftUISnapshotLayout . device ( config: . iPhone8)
10
10
11
+ override func setUpWithError( ) throws {
12
+ try XCTSkipIf ( UIDevice . current. userInterfaceIdiom == . pad, " Skipping on Mac Catalyst " )
13
+ }
14
+
11
15
func testTaskList( ) {
12
16
let view = Markdown {
13
17
#"""
Original file line number Diff line number Diff line change 8
8
final class MarkdownTests : XCTestCase {
9
9
private let layout = SwiftUISnapshotLayout . device ( config: . iPhone8)
10
10
11
+ override func setUpWithError( ) throws {
12
+ try XCTSkipIf ( UIDevice . current. userInterfaceIdiom == . pad, " Skipping on Mac Catalyst " )
13
+ }
14
+
11
15
func testBlockquote( ) {
12
16
let view = Markdown {
13
17
#"""
Original file line number Diff line number Diff line change 8
8
final class ThemeDocCTests : XCTestCase {
9
9
private let layout = SwiftUISnapshotLayout . device ( config: . iPhone8)
10
10
11
+ override func setUpWithError( ) throws {
12
+ try XCTSkipIf ( UIDevice . current. userInterfaceIdiom == . pad, " Skipping on Mac Catalyst " )
13
+ }
14
+
11
15
func testInlines( ) {
12
16
let view = ThemePreview ( theme: . docC) {
13
17
#"""
Original file line number Diff line number Diff line change 9
9
private let layout = SwiftUISnapshotLayout . device ( config: . iPhone8)
10
10
private let perceptualPrecision : Float = 0.97
11
11
12
+ override func setUpWithError( ) throws {
13
+ try XCTSkipIf ( UIDevice . current. userInterfaceIdiom == . pad, " Skipping on Mac Catalyst " )
14
+ }
15
+
12
16
func testInlines( ) {
13
17
let view = ThemePreview ( theme: . gitHub) {
14
18
#"""
You can’t perform that action at this time.
0 commit comments