agentsclimarketplace

Swift testing

Skill sarveshsea/design-skills/skills/swift-testing

Build an Apple-platform test strategy with Swift Testing for unit and integration coverage, XCTest for UI automation, deterministic fixtures, and concise agent-readable results.From its SKILL.md

Install
npx -y skills add sarveshsea/design-skills --skill swift-testing

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.3 KB, 212 tokens by cl100k_base, as published. Nobody here has run it

Swift Testing

Workflow

  1. Identify the behavior contract and the cheapest test layer that proves it.
  2. Use Swift Testing for new Swift unit and integration tests when the project toolchain supports it.
  3. Keep XCTest and XCUIAutomation for UI tests and existing Objective-C or mixed-language coverage.
  4. Isolate time, randomness, persistence, networking, notifications, and device state behind deterministic inputs.
  5. Add parameterized cases for meaningful input matrices instead of copy-pasted tests.
  6. Test async failure, cancellation, and actor behavior without arbitrary sleeps.
  7. Run the smallest suite during iteration and the repository test plan before handoff.

Test pyramid

  • Many fast unit tests for pure behavior and state transitions.
  • Fewer integration tests for persistence, networking boundaries, intents, and dependency wiring.
  • A small set of stable UI tests for critical user journeys and accessibility identifiers.
  • Performance baselines only for paths where regressions matter.

Read references/commands.md for command and result requirements.

What ships with it: 2 files

1.6 KB alongside SKILL.md

references/

Keep looking

Skills are one crate of 326,852. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.