Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate XCTest UI tests for macOS applications with accessibility identifiers and page object patterns
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 1% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 13% | 0% |
| case-16 | ✗→✓ | ▲ Improved | -57% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 25% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 34% | 0% |
Generate XCTest UI tests for macOS applications. This skill creates UI test classes with accessibility identifiers, page object patterns, and proper test organization.
json{ "type": "object", "properties": { "projectPath": { "type": "string" }, "targetViews": { "type": "array" }, "usePageObjects": { "type": "boolean", "default": true }, "generateAccessibilityIds": { "type": "boolean", "default": true } }, "required": ["projectPath"] }
swiftimport XCTest final class MainViewUITests: XCTestCase { var app: XCUIApplication! override func setUpWithError() throws { continueAfterFailure = false app = XCUIApplication() app.launchArguments = ["--uitesting"] app.launch() } func testMainViewLoads() throws { let mainView = app.windows["MainWindow"] XCTAssertTrue(mainView.waitForExistence(timeout: 5)) let titleLabel = mainView.staticTexts["welcomeLabel"] XCTAssertTrue(titleLabel.exists) XCTAssertEqual(titleLabel.label, "Welcome") } func testNavigationToSettings() throws { app.menuItems["Preferences…"].click() let settingsWindow = app.windows["SettingsWindow"] XCTAssertTrue(settingsWindow.waitForExistence(timeout: 2)) } }
swiftui-view-generatordesktop-ui-testing processOther measured skills in the registry, with their headline benchmark lift.