Skip to content

Testing Matrix ​

FeedbackKit contains multiple test suites spanning Swift, TypeScript, and Agent Skills.


Testing Matrix Overview ​

ComponentTarget PlatformTest RunnerCommand
Swift SDKmacOS (native)Swift Testing / XCTestswift test
Swift SDKiOS Simulatorxcodebuildxcodebuild test -scheme FeedbackKit -destination '...'
Swift SDKwatchOS Simulatorxcodebuildxcodebuild test -scheme FeedbackKit -destination '...'
Web DashboardNode / BrowserNode test runnercd web && npm test
Web SDKNode + real browsersVitest + Playwrightcd web-sdk && npm test && npm run test:e2e
CLI & MCPNode.jsNode test runnercd cli && npm test
Agent SkillsSpecificationNode scriptnpm run validate

1. Swift SDK Unit Tests (Tests/FeedbackKitTests/) ​

The SDK tests cover data serialization, hex color encoding, and drawing geometry.

Native macOS (Fastest) ​

bash
swift test

# Filter for a single test
swift test --filter FeedbackReportTests/testHexColorRoundTrip

Simulator Tests (iOS & watchOS) ​

Simulator testing validates platform-specific implementations:

bash
# Find available simulator
xcrun simctl list devices available

# iOS destination
xcodebuild test -scheme FeedbackKit -destination 'platform=iOS Simulator,name=iPhone 16'

# watchOS destination
xcodebuild test -scheme FeedbackKit -destination 'platform=watchOS Simulator,name=Apple Watch Series 10 (46mm)'

2. Web Dashboard Unit Tests (web/) ​

Tests prompt template merging, placeholder replacement, and repository URL parsing:

bash
cd web
npm test

3. CLI & MCP Tests (cli/) ​

Tests project-scoped descriptions and MCP server tool registration:

bash
cd cli
npm test

4. Agent Skills Validation ​

Validates YAML frontmatter across all skills in skills/:

bash
npm run validate

Built with VitePress · FeedbackKit is open source