Skip to content

Commit bdeb9d0

Browse files
committed
only run ui tests manually with xcode
1 parent 297485e commit bdeb9d0

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

macos/GhosttyUITests/GhosttyCustomConfigCase.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@
88
import XCTest
99

1010
class GhosttyCustomConfigCase: XCTestCase {
11+
/// We only want run these UI tests
12+
/// when testing manually with Xcode IDE
13+
///
14+
/// So that we don't have to wait for each ci check
15+
/// to run these tedious tests
16+
override class var defaultTestSuite: XCTestSuite {
17+
// https://lldb.llvm.org/cpp_reference/PlatformDarwin_8cpp_source.html#:~:text==%20%22-,IDE_DISABLED_OS_ACTIVITY_DT_MODE
18+
19+
if ProcessInfo.processInfo.environment["IDE_DISABLED_OS_ACTIVITY_DT_MODE"] != nil {
20+
return XCTestSuite(forTestCaseClass: Self.self)
21+
} else {
22+
return XCTestSuite(name: "Skipping \(className())")
23+
}
24+
}
25+
1126
override class var runsForEachTargetApplicationUIConfiguration: Bool {
1227
true
1328
}

macos/GhosttyUITests/GhosttyThemeTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ final class GhosttyThemeTests: GhosttyCustomConfigCase {
146146
app.launch()
147147
// close default window
148148
app.typeKey("w", modifierFlags: [.command])
149-
// open quick termial
149+
// open quick termnial
150150
app.menuBarItems["View"].firstMatch.click()
151151
app.menuItems["Quick Terminal"].firstMatch.click()
152152
let title = "Debug builds of Ghostty are very slow and you may experience performance problems. Debug builds are only recommended during development."

macos/GhosttyUITests/GhosttyTitlebarTabsUITests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ final class GhosttyTitlebarTabsUITests: GhosttyCustomConfigCase {
1818
"""
1919
)
2020
}
21+
2122
@MainActor
2223
func testCustomTitlebar() throws {
2324
let app = try ghosttyApplication()

0 commit comments

Comments
 (0)