mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-17 13:02:42 +00:00
only run ui tests manually with xcode
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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."
|
||||
|
||||
@@ -18,6 +18,7 @@ final class GhosttyTitlebarTabsUITests: GhosttyCustomConfigCase {
|
||||
"""
|
||||
)
|
||||
}
|
||||
|
||||
@MainActor
|
||||
func testCustomTitlebar() throws {
|
||||
let app = try ghosttyApplication()
|
||||
|
||||
Reference in New Issue
Block a user