only run ui tests manually with xcode

This commit is contained in:
Lars
2025-10-28 09:29:38 +01:00
committed by Mitchell Hashimoto
parent 85da70c98d
commit 27729bf8a7
3 changed files with 17 additions and 1 deletions

View File

@@ -8,6 +8,21 @@
import XCTest
class GhosttyCustomConfigCase: XCTestCase {
/// We only want run these UI tests
/// when testing manually with Xcode IDE
///
/// So that we don't have to wait for each ci check
/// to run these tedious tests
override class var defaultTestSuite: XCTestSuite {
// https://lldb.llvm.org/cpp_reference/PlatformDarwin_8cpp_source.html#:~:text==%20%22-,IDE_DISABLED_OS_ACTIVITY_DT_MODE
if ProcessInfo.processInfo.environment["IDE_DISABLED_OS_ACTIVITY_DT_MODE"] != nil {
return XCTestSuite(forTestCaseClass: Self.self)
} else {
return XCTestSuite(name: "Skipping \(className())")
}
}
override class var runsForEachTargetApplicationUIConfiguration: Bool {
true
}

View File

@@ -146,7 +146,7 @@ final class GhosttyThemeTests: GhosttyCustomConfigCase {
app.launch()
// close default window
app.typeKey("w", modifierFlags: [.command])
// open quick termial
// open quick termnial
app.menuBarItems["View"].firstMatch.click()
app.menuItems["Quick Terminal"].firstMatch.click()
let title = "Debug builds of Ghostty are very slow and you may experience performance problems. Debug builds are only recommended during development."

View File

@@ -18,6 +18,7 @@ final class GhosttyTitlebarTabsUITests: GhosttyCustomConfigCase {
"""
)
}
@MainActor
func testCustomTitlebar() throws {
let app = try ghosttyApplication()