What problem does it solve?
This Skill identifies inappropriate or excessive mocking in tests, which can lead to false confidence and incomplete verification, ensuring tests accurately reflect the behavior they claim to test.
Core Features & Use Cases
- Mock Appropriateness Analysis: Evaluates if mocks are used correctly based on test type (unit, integration, E2E).
- Violation Detection: Identifies specific patterns like mocking the system under test (T1), verifying calls without results (T2), or mocking integration boundaries (T3).
- Scope Tracking: Determines the full impact of a violation on test effectiveness.
- Use Case: When running a test audit, this skill analyzes flagged test files to pinpoint tests that use mocks in a way that undermines their purpose, providing actionable insights to improve test reliability.
Quick Start
Analyze the provided test files for mock appropriateness and potential violations.