only run ui tests manually with xcode
parent
85da70c98d
commit
27729bf8a7
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue