Test Enforcement

Block task completion when tests fail or coverage drops below thresholds.

4|1|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/doanchienthangdev/omgkit --skill test-enforcement
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Test Enforcement
Source: https://github.com/doanchienthangdev/omgkit/tree/main/plugin/skills/methodology/test-enforcement
Command: npx skills add https://github.com/doanchienthangdev/omgkit --skill test-enforcement

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents incomplete work by enforcing that all code changes must have passing tests and meet defined coverage criteria before being considered done.

Core Features & Use Cases

  • Mandatory Testing: Blocks task completion if tests are missing or failing.
  • Configurable Gates: Allows setting minimum coverage percentages and defining required test types (unit, integration, etc.).
  • Override Mechanisms: Provides options for soft warnings, standard blocking, and strict enforcement, with configurable override procedures for emergencies.
  • Use Case: A developer attempts to mark a feature as complete, but the system automatically blocks it, indicating that unit tests are missing for new API endpoints and that coverage has dropped below the 80% threshold.

Quick Start

Use the Test Enforcement skill to ensure all new code has passing tests and meets coverage requirements before marking a task as complete.

Frequently Asked Questions about Test Enforcement

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

FAQPage Schema
How do I enforce mandatory testing and block task completion if coverage drops?

To enforce mandatory testing, configure strict validation gates that block task completion if tests are missing, failing, or if code coverage drops below your defined threshold. This prevents incomplete work from being marked as done.

What is test enforcement and how does it ensure code quality in CI/CD?

Test enforcement is a validation mechanism that ensures code quality by requiring passing tests and defined coverage criteria before any feature is considered done. It acts as a strict gate within your development workflow.

Can I configure different enforcement levels for blocking code changes?

Yes, you can configure enforcement levels including soft warnings, standard blocking, and strict enforcement. These gates allow you to set minimum coverage percentages and define required test types like unit or integration tests.

How do I override test enforcement for emergency deployments?

You can bypass test enforcement using configurable override procedures designed for emergencies. These mechanisms allow you to bypass standard blocking gates while maintaining evidence-based completion records for the deployment.

Does test enforcement support specific test types like unit and integration tests?

Yes, test enforcement supports specific test types such as unit and integration tests. You can define which required test types must pass and set minimum coverage percentages before a task can be marked as complete.

What are the limitations of strict test enforcement in software engineering?

The limitation of strict test enforcement is that it may block urgent deployments if tests fail or coverage is insufficient. However, configurable override procedures are available to handle these edge cases and emergency situations safely.