regression-testing

Select impacted tests for regression cycles using change-based and risk-based strategies.

6|3|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/pacphi/ampel --skill regression-testing-pacphi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: regression-testing
Source: https://github.com/pacphi/ampel/tree/main/.claude/skills/regression-testing
Command: npx skills add https://github.com/pacphi/ampel --skill regression-testing-pacphi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables strategic regression testing by prioritizing tests, analyzing impact, and optimizing execution time.

Core Features & Use Cases

  • Change-Based Selection: Focus tests on changed code
  • Impact Analysis: Prioritize tests by risk and area affected
  • Execution Optimization: Parallelization and sharding
  • CI/CD Integration: Aligns with release cadence

Quick Start

npm run test:affected

Frequently Asked Questions about regression-testing

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

FAQPage Schema
How do I run only the tests affected by my code changes in CI/CD?

Change-based regression testing selects only tests impacted by code modifications, reducing execution time. Use git diff analysis to map changed files to test coverage, then run the affected subset via your CI/CD pipeline with `npm run test:affected` or equivalent commands for your build system.

What's the best way to prioritize tests by risk and impact in regression cycles?

Impact analysis ranks tests by risk and affected area, running critical smoke tests first, then selective suites, before full regression. This strategy optimizes feedback speed in per-commit, nightly, and pre-release cycles by focusing on high-value test coverage mappings.

Can I parallelize and shard regression tests across multiple machines?

Yes, execution optimization supports parallel and sharded test distribution to accelerate regression cycles. Combine this with incremental testing and real-time suite health monitoring to reduce overall CI/CD runtime while maintaining coverage.

When should I use change-based versus risk-based regression testing strategies?

Change-based selection focuses on modified code paths and is ideal for frequent per-commit testing. Risk-based prioritization targets high-impact areas and suits nightly or pre-release cycles where comprehensive coverage matters more than speed.

How do I integrate regression testing efficiency into my existing CI/CD workflow?

Regression testing integrates into CI/CD by applying change-based and risk-based strategies to your release cadence. Configure git diff analysis, test-coverage mappings, and parallel execution to align smoke, selective, and full test suites with your commit and release gates.

What visibility do I get into test suite health during regression cycles?

Real-time suite health monitoring provides ongoing visibility into test performance and coverage across regression cycles. This enables rapid feedback on test failures, flakiness, and execution trends across incremental testing runs.