audit-testing
Scan test code for patterns that cause flakes, slow CI, or weak coverage — and surface migration opportunities from XCTest to Swift Testing.
What This Command Does
Launches the testing-auditor agent to find tests that pass locally but fail in CI, tests that take too long, and tests that pass without actually verifying anything meaningful.
What It Checks
- Flaky patterns —
sleep()calls, time-based waits, shared mutable state across tests, ordering dependencies - Slow tests — synchronous network calls, real database access where mocks would suffice, oversized fixtures
- Swift Testing migration —
XCTestCasepatterns that would simplify under@Test/@Suite/#expect - Quality issues — tests with no assertions, assertions on tautologies, snapshot tests that auto-record
- Concurrency issues —
@MainActorviolations, missingawaits on async assertions, unchecked Sendable
Related Agent
- testing-auditor — The agent that powers this command