test-discipline

Update tests in the same commit as API changes and validate assertions against disk state.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill ensures that when APIs or public interfaces change, tests are updated accordingly, and test assertions are in sync with the actual disk state, preventing CI failures and ensuring test integrity.

Core Features & Use Cases

  • API Change Synchronization: Updates tests in the same commit as API changes to maintain test coverage.
  • Test Assertion Validation: Ensures test assertions that reference file counts or expected arrays are in sync with the disk reality.
  • CI Flow Enhancement: Reduces CI failures by maintaining test integrity and synchronization with the codebase.

Quick Start

Use the test-discipline skill to update the tests for the 'auth' API in the same commit as the API change.

Frequently Asked Questions about test-discipline

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

FAQPage Schema
How do I prevent CI failures caused by out-of-date tests when making API changes?

To prevent CI failures from out-of-date tests, you must update tests in the same commit as API changes. This ensures test synchronization and validates test assertions against actual disk state, maintaining overall test integrity.

How do I validate test assertions against actual disk reality?

Validating test assertions against disk reality involves checking that assertions referencing expected file counts or arrays match the actual disk state. This synchronization prevents CI failures caused by tests referencing outdated file structures.

What is test synchronization and when do I need it for API changes?

Test synchronization is the process of updating tests simultaneously with API changes to maintain test coverage. You need it whenever modifying public interfaces to ensure test assertions remain in sync with the actual disk reality and prevent CI failures.

What is the best way to maintain test integrity during CI flow enhancements?

The best way to maintain test integrity during CI flow enhancements is to require test updates within the same commit as API changes. This approach validates test assertions against disk reality and reduces CI failures caused by desynchronized codebases.

Why do my CI pipelines fail when test assertions reference incorrect file counts?

CI pipelines fail when test assertions reference incorrect file counts because the tests are out of sync with the actual disk reality. Updating test assertions in the same commit as API changes resolves this test integrity issue and prevents failures.

Does the test-discipline skill work without external dependencies for test synchronization?

Yes, the test-discipline skill works without external dependencies to ensure test synchronization. It uses internal scripts to validate that test assertions match disk reality and that tests are updated in the same commit as API changes.