mcpField
S
swift-testing

swift-testing

github.com/prisma-labs-devTesting & quality350666 installsUpdated 5w ago
Repository

About swift-testing

swift-testing is a reference skill for Apple's modern Testing framework, used through `import Testing`. It provides local guides to defining, organizing, and parameterizing tests, managing expectations and traits, and migrating from XCTest.

Key features

  1. 01Test functions with @Test
  2. 02Organizing tests with @Suite
  3. 03Expectations and confirmations
  4. 04Parameterized testing patterns
  5. 05Test traits and conditions
  6. 06XCTest migration guide

Use cases

  1. 01Looking up @Test and @Suite usage
  2. 02Adding parameterized test cases
  3. 03Applying test conditions or time limits
  4. 04Planning a move from XCTest

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/prisma-labs-dev/apple-skills --skill swift-testing

After installing, type/swift-testingin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

defining-tests.md
expectations.md
migrating-from-xctest.md
organizing-tests.md
parameterized-testing.md
testing-overview.md
traits.md

Details

From the project README

Swift Testing Reference

Apple's modern testing framework (import Testing) for iOS 26+.

Downloaded Reference Files

FileContent
testing-overview.mdFull Testing framework index
defining-tests.mdDefining test functions with @Test
organizing-tests.mdOrganizing tests with @Suite
expectations.md#expect, #require, confirmations
parameterized-testing.mdParameterized test patterns
traits.mdTest traits (tags, conditions, time limits)
migrating-from-xctest.mdMigration guide from XCTest

Fetching More Docs

  1. Search this skill's local .md files first.
  2. If the topic is not here, check the other installed Apple skills you have available by their names, descriptions, or SKILL.md frontmatter, then grep their local files. This is faster and uses less context than fetching new docs from the internet.
  3. If no installed skill has the page, use the relevant documentation path from testing-overview.md with the sosumi.ai Markdown mirror. For example, /documentation/testing/test maps to https://sosumi.ai/documentation/testing/test.

Comments

Markdown supported