test-file-compaction

Community

Compact test suites while preserving semantics.

Authorstevenengland
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Refactors existing test files to reduce line count and eliminate repetition without dropping any test case, assertion, or edge-case coverage. Extracts fixtures, parametrizes duplicate test bodies, introduces shared assertion helpers, and hoists repeated constants — preserving full test semantics throughout.

Core Features & Use Cases

  • Parametrize identical test bodies to collapse multiple tests into one data-driven test.
  • Extract repeated setup into fixtures to avoid duplication across tests.
  • Introduce shared assertion helpers to simplify multi-assert checks.
  • Hoist constants and literals to module scope to reduce inline repetition.
  • Flatten single-test classes to improve readability without changing behavior.
  • Preserve test IDs, order, and markers to maintain debuggability and coverage.

Quick Start

Refactor a given test file to parametrize identical tests and extract shared fixtures while preserving semantics.

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: test-file-compaction
Download link: https://github.com/stevenengland/sten-agent-skills/archive/main.zip#test-file-compaction

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.