ios-testing-patterns

ios-testing-patterns is a skill for Claude Code from conorluddy/xclaude-plugin. It costs 18 tokens per session (4,619 once invoked), scanned A, original, MIT.

A guide and workflow for running XCTest and XCUITest, Apple's frameworks for unit tests and user-interface tests in iOS apps.

In plain words
What is it for?
Use it to run all or selected tests, skip tests, use test plans, run tests in parallel, analyze failures, and set up continuous integration.
Why use it?
It helps developers investigate failures, identify flaky tests that pass and fail unpredictably, and improve test execution.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the xclaude-plugin plugin — 8 skills, 2 MCP servers shipped together

Good fit Use it to run all or selected tests, skip tests, use test plans, run tests in parallel, analyze failures, and set up continuous integration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/conorluddy/xclaude-plugin/ios-testing-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add conorluddy/xclaude-plugin --skill ios-testing-patterns
Clone the repo
git clone --depth 1 https://github.com/conorluddy/xclaude-plugin

Made for: Claude Code.

Or install xclaude-plugin, the plugin that ships this one along with the rest of its 8 skills, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ios-testing-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/conorluddy/xclaude-plugin/ios-testing-patterns/github.svg)](https://agentmods.dev/skills/conorluddy/xclaude-plugin/ios-testing-patterns)
Your own site
<a href="https://agentmods.dev/skills/conorluddy/xclaude-plugin/ios-testing-patterns"><img src="https://agentmods.dev/badge/skills/conorluddy/xclaude-plugin/ios-testing-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ios-testing-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/conorluddy/xclaude-plugin/ios-testing-patterns"><img src="https://agentmods.dev/badge/skills/conorluddy/xclaude-plugin/ios-testing-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,619 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.04619
Opus 5.5 $0.00007 $0.01848
Sonnet 5.5 $0.00004 $0.00924
Haiku 4.5 $0.00002 $0.00462

Measured 3mo ago against content hash fcdb17db3b65, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ios-testing-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ios-testing-patterns/SKILL.md · 898 lines

How it starts

The opening of the file, as written. The whole thing — 898 lines — stays where its author put it; the contents beside it link to each section on GitHub.

iOS Testing Patterns Skill

Comprehensive guide to XCTest and XCUITest execution, analysis, and flaky test detection

Overview

This skill provides patterns and workflows for executing iOS tests using XCTest and XCUITest frameworks. It covers test execution strategies, result analysis, flaky test detection, and troubleshooting common test failures.

Use this skill when:

  • Running unit tests or UI tests
  • Analyzing test failures
  • Detecting and debugging flaky tests
  • Optimizing test execution performance
  • Setting up CI/CD test pipelines

Quick Reference

Task Operation Key Parameters
Run all tests test scheme, destination
Run specific test test scheme, only_testing
Skip tests test scheme, skip_testing
Use test plan test scheme, test_plan
Parallel execution test destination (multiple)

When to Use This Skill

Use ios-testing-patterns when:

  • Executing XCTest unit tests
  • Running XCUITest UI automation tests
  • Investigating test failures
  • Detecting intermittent test failures (flaky tests)
  • Analyzing test performance and execution time
  • Setting up test schemes and test plans
  • Configuring parallel test execution
  • Debugging test-specific simulator issues

Related Skills:

  • xcode-workflows: For general build and test operations
  • simulator-workflows: For managing test simulators
  • ui-automation-workflows: For UI test interaction patterns

Key Concepts

XCTest vs XCUITest

XCTest (Unit/Integration Tests):

  • Fast execution (milliseconds to seconds)
  • Tests individual components in isolation
  • Direct access to app internals
  • No UI interaction required
  • Runs in same process as app code

XCUITest (UI Tests):

  • Slower execution (seconds to minutes)
  • Tests user-facing workflows
  • Black-box testing (no app internals)
  • Requires simulator/device UI
  • Runs in separate process

Read the full file on GitHub · 898 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 898 lines · 18 tokens per session scan A fcdb17db3b65

Subscribe to this mod's changes

ios-testing-patterns is a skill published in the GitHub repository conorluddy/xclaude-plugin (189 stars, last pushed 1mo ago), licensed MIT. It adds 18 tokens to every session and 4,619 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ios-testing-patterns compared with skills from other repositories

ios-testing-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ios-testing-patternsconorluddy/xclaude-pluginSkill1891mo agoMITA18Claude Code
mobile-app-testingsecondsky/claude-skillsSkill2575d agoMITA47Claude Code
rn-write-testslukedj78/dev-flowSkill52d agoMITA173Claude Code
agent-testerruvnet/rufloSkill83ktodayMITA15Claude Code
argent-test-ui-flowsoftware-mansion/argentSkill3.3ktodayApache-2.0A44Claude Code, Codex
test-native-extensionmicrosoft/power-platform-skillsSkill1.2ktodayMITA211Claude Code
argent-qa-e2esoftware-mansion/argentSkill3.3ktodayApache-2.0A91Claude Code, Codex