mock-detection

Official

Deep mock analysis for test quality

AuthorQBall-Inc
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: mock-detection
Download link: https://github.com/QBall-Inc/the-bulwark/archive/main.zip#mock-detection

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.