Regression Testing Protocol

Enforce regression testing with pytest by requiring reproducing tests for every bug fix.

Updated Dec 9, 2025
One-click install
npx skills add https://github.com/PROdotes/Gosling2 --skill regression-testing-protocol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Regression Testing Protocol
Source: https://github.com/PROdotes/Gosling2/tree/main/.agent/skills/regression-testing-protocol
Command: npx skills add https://github.com/PROdotes/Gosling2 --skill regression-testing-protocol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enforces regression testing by ensuring every bug fix includes a reproducing test.

Core Features & Use Cases

  • Law-based integrity: Immutable laws live in tests/laws and must not be edited to force a pass.
  • Targeted regression: Implement tests under tests/regression (or tests/unit) to reproduce and validate bugs.
  • Repeatable workflow: A defined process to reproduce, fix, and verify fixes, then run the full law suite again.

Quick Start

Run the law suite first. Create or update tests to reproduce the bug, implement the fix, and run both the laws and regression suites to confirm success.

Frequently Asked Questions about Regression Testing Protocol

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

FAQPage Schema
How do I enforce regression testing for bug fixes in pytest?

Regression testing for bug fixes in pytest is enforced by requiring a reproducing test for every fix. Tests go in tests/regression or tests/unit, while immutable invariants stay in tests/laws to validate fixes before release.

What is the pytest workflow for reproducing and validating a bug fix?

The pytest workflow for reproducing and validating a bug fix involves running the law suite first, creating a test to reproduce the bug, implementing the fix, then running both laws and regression suites to confirm success.

How should I structure pytest test files for immutable invariants versus regression bugs?

Immutable invariants in pytest should be structured in tests/laws, while regression bugs go in tests/regression or tests/unit. Law files use standardized naming like test_law_NNN_description.py and must not be edited to force a pass.

What is the best way to organize quality assurance tests to prevent regressions before release?

The best way to organize quality assurance tests to prevent regressions is separating immutable laws from targeted regression tests, enforcing a repeatable workflow to reproduce, fix, and validate bugs before running the full law suite again.

Can I edit tests under tests/laws to force a pytest pass when fixing a bug?

You cannot edit tests under tests/laws to force a pytest pass when fixing a bug. Law-based integrity requires immutable invariants to remain untouched; targeted regression tests must be created instead to reproduce and validate implementation-specific bugs.