test-discipline

Enforce test updates in the same commit as API changes.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When APIs or public interfaces change, tests must be updated in the same commit. Stale tests block CI for other contributors.

Core Features & Use Cases

  • Enforces in-commit test updates to API changes
  • Aligns test assertions with disk state and public interfaces
  • Reduces CI failures caused by stale tests

Quick Start

Update the related tests in the same commit whenever you modify an API.

Frequently Asked Questions about test-discipline

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

FAQPage Schema
How do I keep tests in sync with API changes to prevent CI failures?

Stale tests block CI for other contributors when APIs or public interfaces change, so updating test assertions and fixtures in the same commit prevents pipeline failures and maintains consistency across the codebase.

How do I update test assertions when modifying public interfaces?

You update test assertion arrays and API surface checks to match the new disk state counts or public interface modifications, including these updated test fixtures in the exact same commit as the API change.

Does this approach work for codebases relying on disk state counts?

Yes, this approach applies directly to codebases where tests rely on disk state counts or public interfaces, enforcing that test fixtures and assertions are updated in the same commit as API surface changes.

Why do stale tests block CI for other contributors?

Stale tests block CI for other contributors because outdated assertions fail against modified public interfaces, halting the continuous integration pipeline until the test fixtures are updated to match the API changes.

What's the best way to enforce in-commit test updates for API changes?

The best way to enforce in-commit test updates is to apply automated checks that verify test fixtures and assertion arrays are modified in the same commit as the public interface or API change.