Test Coverage Guardrail

Require Minitest tests for new public methods and code changes.

1|1|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/wtn/claude-arsenal --skill test-coverage-guardrail
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Test Coverage Guardrail
Source: https://github.com/wtn/claude-arsenal/tree/main/context/skills/test-coverage
Command: npx skills add https://github.com/wtn/claude-arsenal --skill test-coverage-guardrail

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill acts as a critical guardrail, preventing new code from being integrated without adequate testing. It solves the problem of insufficient test coverage, which leads to bugs, regressions, and increased maintenance costs, ultimately saving significant debugging and refactoring time.

Core Features & Use Cases

  • Mandatory Testing: Requires tests for all new public methods and code changes, ensuring no untested code slips through.
  • Comprehensive Coverage: Guides on testing happy paths, error cases, and file operations for thorough validation.
  • Isolated Tests: Emphasizes proper setup and teardown for reliable, independent tests that don't interfere with each other.
  • Descriptive Test Names: Promotes clear, behavior-driven test naming for easier understanding and maintenance.
  • Use Case: Before committing a new feature, this guardrail ensures you've written and passed all necessary Minitest tests, covering various scenarios, thereby catching potential bugs early and maintaining code quality.

Quick Start

I've added a new method to lib/my_class.rb. Use the test-coverage guardrail to ensure I've written comprehensive Minitest tests for it, covering success and failure cases.