testing-discipline

Enforce unit, integration, and end-to-end testing with coverage thresholds and deterministic results.

Updated May 4, 2026
One-click install
npx skills add https://github.com/xaionaro/.config-codex --skill testing-discipline-xaionaro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-discipline
Source: https://github.com/xaionaro/.config-codex/tree/main/skills/testing-discipline
Command: npx skills add https://github.com/xaionaro/.config-codex --skill testing-discipline-xaionaro

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents shipping unverified code by enforcing testing discipline, ensuring coverage, falsification, dual-sided validation, and determinism across workflows.

Core Features & Use Cases

  • Unit checks: ensure code changes are validated in isolation.
  • E2E when applicable: validate real user paths in target environments where a framework exists.
  • Dual-sided testing: every test confirms both correct and incorrect behavior to maximize coverage.
  • Test validation guidance: provide processes for validating new tests and comparing pre/post-change results.

Quick Start

Run the full test suite for the latest change and verify deterministic results across environments.

Frequently Asked Questions about testing-discipline

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

FAQPage Schema
How do I enforce test coverage thresholds before releasing code?

Enforce test coverage thresholds by applying a testing discipline that validates unit, integration, and end-to-end checks before marking work complete. This ensures code changes are verified in isolation and across real user paths.

What is dual-sided testing and how does it validate behavior?

Dual-sided testing is a validation process where every test confirms both correct and incorrect behavior to maximize coverage. It ensures that code changes reject invalid inputs and handle edge cases alongside expected positive outcomes.

How do I ensure deterministic test results across different environments?

Ensure deterministic test results by running the full test suite for the latest change and verifying reproducible outputs across environments. This testing discipline enforces validation steps that prevent flaky or environment-dependent failures.

When do I need end-to-end checks in my testing workflow?

You need end-to-end checks when a testing framework exists to validate real user paths in target environments. Apply E2E testing alongside unit checks to ensure comprehensive validation before release.

Can I use this testing discipline for unit testing in isolation?

Yes, this testing discipline supports unit checks by ensuring code changes are validated in isolation. It provides processes for validating new tests and comparing pre/post-change results to verify isolated component behavior.