full-stack-skills/swift-skills/swift-testing

Claude Code and agent skill by full-stack-skills/swift-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Design high-value Swift tests across XCTest or Swift Testing, unit, integration, async, contract, adapter, end-to-end, property, performance, and regression layers. Use to create or assess Swift tests, fixtures, coverage, determinism, mutation sensitivity, platform matrices, and whole-project migration acceptance packages.

Install

npx vskill@latest install full-stack-skills/swift-skills/swift-testing

SKILL.md

Swift Testing

Tests prove observable contracts. Coverage is supporting structural evidence, not behavioral equivalence.

Test design

  • Name the source test, contract, defect, risk, or incident protected by each test.
  • Assert values, typed errors, ordering, state transitions, side effects, bytes, cleanup, and public lifecycle behavior.
  • Prefer real values and controlled fakes at owned boundaries. Mock only expensive or nondeterministic collaborators.
  • Preserve every parameterized source case identity during migrations even when Swift groups cases in one test declaration.
  • For async tests, use expectations, continuations, clocks, or event-driven hooks with bounded timeouts; avoid fixed sleeps.
  • Reuse one conformance suite across adapters, then add adapter-native failure and lifecycle cases.
  • Test every claimed platform or condition in CI; conditional compilation is part of the behavioral surface.

Layers

LayerPurpose
Unitlocal algorithms and value contracts
Componentone target with owned collaborators
Integrationfilesystem, database, network protocol, C/Objective-C bridge
Contractshared requirements for every provider/adapter
End-to-endpublic workflow through production composition
<project>-testwhole-project migration parity and differential acceptance

Migration rule

Production targets retain local tests. A dedicated <project>-test Package or clearly separated integration target owns copied Java fixtures, cross-target scenarios, Java/Swift runners, normalization, and full differential reports. Neither layer substitutes for the other.

bash
swift test
swift test --enable-code-coverage

Add sanitizers, Thread Sanitizer, performance, fuzz/property, compatibility, or load gates according to risk. Do not inflate coverage with trivial assertions.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/full-stack-skills/swift-skills/swift-testing/badge)](https://verified-skill.com/skills/full-stack-skills/swift-skills/swift-testing)

Something wrong with this skill or its page? Tell us.