test-discipline

Update test assertions in the same commit as API changes.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/WayneWalterBerry/MMO --skill test-discipline-waynewalterberry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-discipline
Source: https://github.com/WayneWalterBerry/MMO/tree/main/.copilot/skills/test-discipline
Command: npx skills add https://github.com/WayneWalterBerry/MMO --skill test-discipline-waynewalterberry

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When APIs or public interfaces change, tests must be updated in the same commit. When test assertions reference file counts or expected arrays, they must be kept in sync with disk reality. Stale tests block CI for other contributors.

Core Features & Use Cases

  • Enforces immediate test updates: aligns tests with API changes in the same commit.
  • Keeps disk reality in sync: ensures EXPECTED features/scenarios match on-disk state.
  • Promotes proactive CI hygiene: reduces flaky failures by validating test assertions before merge.

Quick Start

Update relevant tests whenever you modify APIs, and adjust any counting assertions to reflect the current repository state.

Frequently Asked Questions about test-discipline

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

FAQPage Schema
How do I keep test assertions in sync with API changes in the same commit?

To keep test assertions in sync with API changes, you must update relevant tests and adjust counting assertions to reflect the current repository state within the same commit. This ensures on-disk reality matches test expectations and prevents stale tests.

Why do stale tests block CI for other contributors?

Stale tests block CI because they fail when API changes are not accompanied by corresponding test updates. Validating disk reality and updating test assertions before merge reduces flaky failures and keeps CI pipelines clear for other contributors.

What is disk reality in test assertions?

Disk reality in test assertions refers to ensuring expected features and scenarios match the actual on-disk state. When APIs change, validating disk reality ensures that counting assertions and expected arrays accurately reflect the current repository files.

How do I update counting assertions for large test suites?

To update counting assertions for large test suites, adjust any file count or expected array references to reflect the current repository state whenever you modify public interfaces. This proactive CI hygiene practice reduces flaky failures before merge.

Does this approach work for codebases with public interfaces and CI pipelines?

Yes, this approach is designed for codebases with public interfaces, large test suites, and CI pipelines where API changes frequently require corresponding test updates. It ensures on-disk state matches test expectations to reduce CI failures.