check-test-separation

Community

Detect mixed unit and integration tests

Authoraxel-kaliff
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill detects and reports when unit tests and integration tests are improperly mixed in a Python/pytest codebase, helping teams maintain clear test boundaries and reduce flaky or slow test suites.

Core Features & Use Cases

  • Validates directory placement under tests/unit/ and tests/integration/ and flags unclassified test files.
  • Detects pytest markers (@pytest.mark.unit / @pytest.mark.integration), integration-signaling imports and call patterns, heavy mocking, and problematic conftest fixtures.
  • Use cases include pre-commit or CI checks for changed files, local code review of test hygiene, and auditing large repositories for misplaced integration work.

Quick Start

Run the included AST-based checker against changed or specified test files to receive a formatted report of separation violations.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: check-test-separation
Download link: https://github.com/axel-kaliff/dotfiles/archive/main.zip#check-test-separation

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 471,000+ vetted skills library on demand.