xctest-ui-test-generator

Solid

Generate XCTest UI tests for macOS applications with accessibility identifiers and page object patterns

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
86
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# xctest-ui-test-generator Generate XCTest UI tests for macOS applications. This skill creates UI test classes with accessibility identifiers, page object patterns, and proper test organization. ## Capabilities - Generate XCUITest test classes - Create page object pattern implementations - Set up accessibility identifiers - Generate test data factories - Configure UI test schemes - Create screenshot capture helpers - Set up performance testing - Generate test plans ## Input Schema ```json { "type": "object", "properties": { "projectPath": { "type": "string" }, "targetViews": { "type": "array" }, "usePageObjects": { "type": "boolean", "default": true }, "generateAccessibilityIds": { "type": "boolean", "default": true } }, "required": ["projectPath"] } ``` ## Generated Test Class ```swift import 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…"].cl...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills