test-classification

Classify test files by type and flag those needing deep mock analysis.

8|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/QBall-Inc/the-bulwark --skill test-classification-qball-inc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-classification
Source: https://github.com/QBall-Inc/the-bulwark/tree/main/skills/test-classification
Command: npx skills add https://github.com/QBall-Inc/the-bulwark --skill test-classification-qball-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the initial classification of test files, identifying their type and flagging those that require deeper analysis for potential issues like mock appropriateness.

Core Features & Use Cases

  • Automated Test Categorization: Classifies tests as unit, integration, or e2e based on filename patterns and content signals.
  • Deep Analysis Triage: Flags tests that need further inspection due to integration test characteristics, heavy mocking, or mocking of core modules.
  • Use Case: When a new code change introduces tests, this Skill quickly sorts them, highlighting integration tests or unit tests with suspicious mock usage, allowing developers to focus their review efforts efficiently.

Quick Start

Use the test-classification skill to classify all test files in the 'src/components' directory.

Frequently Asked Questions about test-classification

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically classify test files by type in my project?

To automatically classify test files by type, you can target a specific directory to categorize tests as unit, integration, or e2e based on filename patterns and content validation, flagging those needing deep analysis.

How does mock detection work for identifying suspicious unit tests?

Mock detection works by evaluating content signals within test files to identify heavy mocking or mocking of core modules, flagging potential violations in unit tests that require further inspection.

What is the best way to triage integration tests for potential violations?

The best way to triage integration tests is to scan for integration test characteristics and mock appropriateness, flagging files that require deeper analysis so developers can focus review efforts efficiently.

Do I need AST verification lines to count lines in my test audit?

You need AST verification lines for precise line counting during a test audit when available, ensuring accurate categorization and risk detection within the target directory.

Can I use filename patterns to categorize tests without reading file content?

You cannot rely solely on filename patterns to categorize tests; the classification also requires content validation and risk detection to accurately identify test types and potential mock violations.

Why does the test-classification skill flag certain unit tests for deep analysis?

The test-classification skill flags certain unit tests for deep analysis because it detects suspicious mock usage, such as heavy mocking or mocking of core modules, indicating potential violations that need manual review.