refactor-tests

Community

Improve test code quality.

Authorgrad13
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill identifies and suggests refactoring opportunities within test files to improve their maintainability and effectiveness.

Core Features & Use Cases

  • Detects large test files: Flags tests exceeding 500 lines, indicating a need for splitting.
  • Identifies mixed responsibilities: Pinpoints test files that cover multiple modules or concerns.
  • Flags manual mocking: Highlights instances where manual mock objects are used instead of standard mocking libraries.
  • Use Case: Refactor a large, complex test suite to make it more readable, maintainable, and efficient.

Quick Start

Analyze test files in the current directory for refactoring candidates.

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: refactor-tests
Download link: https://github.com/grad13/cctop/archive/main.zip#refactor-tests

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.