swift-testing-code-review

Swift Testing Code Review

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "swift-testing-code-review" with this command: npx skills add existential-birds/beagle/existential-birds-beagle-swift-testing-code-review

Swift Testing Code Review

Quick Reference

Issue Type Reference

#expect vs #require, expression capture, error testing references/expect-macro.md

@Test with arguments, traits, zip() pitfalls references/parameterized.md

confirmation, async sequences, completion handlers references/async-testing.md

@Suite, tags, parallel execution, .serialized references/organization.md

Review Checklist

  • Expressions embedded directly in #expect (not pre-computed booleans)

  • #require used only for preconditions, #expect for assertions

  • Error tests check specific types (not generic (any Error).self )

  • Parameterized tests with pairs use zip() (not Cartesian product)

  • No logic mirroring implementation in parameterized expected values

  • Async sequences tested with confirmation(expectedCount:)

  • Completion handlers use withCheckedContinuation , not confirmation

  • .serialized applied only where necessary (shared resources)

  • Sibling serialized suites nested under parent if mutually exclusive

  • No assumption of state persistence between @Test functions

  • Disabled tests have explanations and bug links

When to Load References

  • Reviewing #expect or #require usage -> expect-macro.md

  • Reviewing @Test with arguments or traits -> parameterized.md

  • Reviewing confirmation or async testing -> async-testing.md

  • Reviewing @Suite or test organization -> organization.md

Review Questions

  • Could pre-computed booleans in #expect lose diagnostic context?

  • Is #require stopping tests prematurely instead of revealing all failures?

  • Are multi-argument parameterized tests creating accidental Cartesian products?

  • Could zip() silently drop test cases due to unequal array lengths?

  • Are completion handlers incorrectly tested with confirmation ?

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

langgraph-code-review

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

docling

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

python-code-review

No summary provided by upstream source.

Repository SourceNeeds Review