Back to skills
SKILL.md
Xctest Ui Test Generator
ASecurityGenerate XCTest UI tests for macOS applications with accessibility identifiers and page object patterns
- 1,760 stars
- 0 votes
- 0 copies
- 1 view
- Added September 2, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add a5c-ai/babysitter --skill xctest-ui-test-generator --agent claude-codeAre you the author of Xctest Ui Test Generator?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/a5c-ai-xctest-ui-test-generator-babysitter)---
name: xctest-ui-test-generator
description: Generate XCTest UI tests for macOS applications with accessibility identifiers and page object patterns
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
tags: [macos, xctest, uitesting, swift, testing]
graph:
domains: [domain:software-engineering]
specializations: [specialization:desktop-development]
skillAreas: [skill-area:desktop-ui-frameworks, skill-area:component-testing]
roles: [role:desktop-developer, role:fullstack-engineer]
workflows: [workflow:feature-development, workflow:release-management]
topics: [topic:accessibility]
---
# 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…"].click()
let settingsWindow = app.windows["SettingsWindow"]
XCTAssertTrue(settingsWindow.waitForExistence(timeout: 2))
}
}
```
## Related Skills
- `swiftui-view-generator`
- `desktop-ui-testing` process
Files in this skill
- README.md
- SKILL.md
Attribution
Comments
Loading comments…