skillfed

qa-testing-ios

This skill streamlines iOS quality assurance by automating test runs through xcodebuild and simulator environments. It handles both unit and UI testing scenarios, enabling developers to validate app behavior consistently across test suites. Integrate it into your CI/CD pipeline for repeatable, reliable test execution.

qa-testing-ios streamlines running iOS unit tests via xcodebuild by automating test execution through simulator environments. Use xcodebuild test with a specified scheme and destination to launch unit tests on simulators. The skill handles simulator setup, test invocation, and result collection, enabling you to validate app behavior consistently across test suites without manual configuration overhead.

AI-generated summary based on this skill's SKILL.md

69 17 MIT updated by vasilyu1983

Install

vasilyu1983/AI-Agents-public/qa-testing-ios · repository language: Python

CLI (skillfed)coming soon
git clone https://github.com/vasilyu1983/AI-Agents-public
cp -r AI-Agents-public/frameworks/shared-skills/skills/qa-testing-ios ~/.claude/skills/qa-testing-ios

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How to run iOS unit tests with xcodebuild?

qa-testing-ios streamlines running iOS unit tests via xcodebuild by automating test execution through simulator environments. Use xcodebuild test with a specified scheme and destination to launch unit tests on simulators. The skill handles simulator setup, test invocation, and result collection, enabling you to validate app behavior consistently across test suites without manual configuration overhead.

How can I fix flaky iOS UI tests in xcodebuild?

qa-testing-ios addresses flakiness through retry strategies and simulator state management. Implement retry logic to re-run failed tests, configure proper test isolation, and manage simulator state between runs using simctl commands. The skill guides you to reduce animations, stabilize timing dependencies, and apply idempotent test design patterns that eliminate race conditions and environmental variability.

What is xcodebuild test destination and how do I configure it?

qa-testing-ios helps you configure test destinations to specify which simulators or devices your tests run on. Use the -destination flag with xcodebuild to target specific device models, OS versions, and simulator configurations. The skill supports device matrix strategies, allowing you to test across multiple iPhone/iPad variants and iOS versions in parallel, ensuring broad compatibility coverage.

How do I parse xcresult bundles and integrate testing into CI/CD?

qa-testing-ios enables parsing xcresult bundles to extract test results, logs, and diagnostics for pipeline integration. Extract structured data from xcresult archives and feed it into CI/CD systems like GitHub Actions. The skill provides guidance on automating test runs, collecting metrics, and surfacing failures to your development workflow for repeatable, reliable test execution.

What are iOS testing best practices to avoid flakes?

qa-testing-ios emphasizes idempotent, isolated test design to eliminate flakiness. Apply best practices including independent test setup/teardown, deterministic waits instead of sleeps, proper simulator reset between runs, and accessibility-based UI element queries. Combine these with retry strategies and state management to create robust test suites that pass consistently across environments.

Can qa-testing-ios run tests in parallel on iOS simulators?

qa-testing-ios supports parallel testing through xcodebuild's multi-destination execution and device matrix strategies. Configure multiple test destinations to run unit and UI tests concurrently across different simulator instances. This accelerates feedback cycles while maintaining test isolation and proper simulator state management for reliable, repeatable results.

SKILL.md

rendered from the published skill — quoted content, verbatim

QA Testing (iOS)

Use xcodebuild + Xcode Simulator (simctl) to build, run, and stabilize iOS tests.

Primary docs: XCTest, Swift Testing, simctl, Xcode testing

Inputs to Confirm

  • Xcode entrypoint: -workspace or -project
  • -scheme (and optional -testPlan)
  • Destination(s): simulator name + iOS runtime (or OS=latest), and whether real devices are required
  • UI-test hooks: launch arguments/env toggles (stubs, demo data, auth bypass, disable animations)
  • Artifact needs: xcresult, coverage, screenshots/video, logs

Quick Commands

Task Command
List schemes xcodebuild -list -workspace MyApp.xcworkspace
List simulators xcrun simctl list devices
List devices (USB) xcrun xctrace list devices

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 9 files
frameworks/shared-skills/skills/qa-testing-ios/SKILL.md
frameworks/shared-skills/skills/qa-testing-ios/assets/template-ios-ui-test-stability-checklist.md
frameworks/shared-skills/skills/qa-testing-ios/data/sources.json
frameworks/shared-skills/skills/qa-testing-ios/references/ios-ci-optimization.md
frameworks/shared-skills/skills/qa-testing-ios/references/simulator-commands.md
frameworks/shared-skills/skills/qa-testing-ios/references/snapshot-testing-ios.md
frameworks/shared-skills/skills/qa-testing-ios/references/swift-testing.md
frameworks/shared-skills/skills/qa-testing-ios/references/xctest-patterns.md
frameworks/shared-skills/skills/qa-testing-ios/references/xcuitest-patterns.md

Related skills

Tags

test-automation simulator-management flake-detection ci-cd-integration mobile-qa xcresult-analysis device-matrix ui-test-stability test-parallelization accessibility-testing