agentleFS
mejbaurbaharmejbaurbahar/software-tester-skills/skills/regression-testing/SKILL.md

regression-testing

Skill1 starsChanged 53 days agoMITView on GitHub

Use when validating that recent changes haven't broken existing functionality — building/running regression suites, deciding regression scope for a release, and impact analysis from a diff/changelog.

8 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Full regression: only for major releases, schema migrations, or upgrades of shared infrastructure (framework, ORM, auth library).

    line 19
  2. Distinctive:

    Shared components/design system: every consumer, not just the one that triggered the change.

    line 41
  3. Distinctive:

    Dependency upgrades: read the changelog for breaking changes.

    line 43

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Regression Testing

Regression testing proves that what worked before still works after a change. The craft is choosing enough tests, fast, without re-running the world every time.

1. Scope by change impact

  1. Diff-driven: what files/modules changed? Trace consumers: shared components, API endpoints, DB tables/migrations, feature flags, configs.
  2. Always-run core (the floor): login/auth, checkout/payment or your business "money path", data export/import: run every release regardless of the diff.
  3. Risk-weight the rest: likelihood of breakage (size and complexity of change, code churn, past defects) × impact (users, revenue, safety).
  4. Full regression only for major releases, schema migrations, or upgrades of shared infrastructure (framework, ORM, auth library).

2. Automate test selection

jest --changedSince=origin/main            # JS: tests related to changed files
pytest --picked=branch  # pytest-picked;  or pytest-testmon:  pytest --testmon
nx affected -t test / turbo run test --filter=...[origin/main]   # monorepos
git diff --name-only origin/main...HEAD | xargs -n1 ./map-to-tests.sh   # custom mapping via tags/owners

Tag tests by feature and risk (@checkout @auth @smoke @p0) so partial runs are one flag away. Predictive selection tools (e.g. Launchable) learn from history when the suite is large.

3. Suite tiers

TierWhenBudgetContents
Smokeevery commit/PR< 5 mincritical paths (smoke-sanity-testing)
Targetedevery PR< 15 mintests mapped to the change + core floor
Fullnightly / pre-releasehourseverything, incl. slower E2E and cross-browser
Extendedrelease candidateas neededperf baseline, security scan, migration rehearsal

Promote a manual/exploratory flow to automation after it has been run manually 2–3 times and is stable (test-automation). Every fixed production bug gets a regression test that fails without the fix.

4. Regression sources to re-check on purpose

  • Shared components/design system: every consumer, not just the one that triggered the change.
  • Migrations: new-record behavior and legacy rows (old data without new columns), rollback path (data-migration-testing).
  • Dependency upgrades: read the changelog for breaking changes; passing tests may not cover the changed behavior.
  • Config/flags: flag-on and flag-off both work (configuration-feature-flag-testing).
  • Cross-cutting: auth, permissions, caching, i18n, time zones, feature interactions, integrations and webhooks.
  • Non-functional drift: performance vs baseline, bundle size, accessibility, visual diffs (visual-testing).

5. Triage a failing regression test

  1. Re-run once to rule out flakiness (flaky-test-management); never file a flake as a regression.
  2. Bisect to the culprit: git bisect run ./run-one-test.sh, or compare with the last known-good deploy/build.
  3. Decide: product bug / intended change (update the test with justification) / test bug / environment.
  4. File with the introducing commit/PR when known (bug-reporting); it is the most useful fact for a fast fix.

6. Measure

Regression escape rate (bugs found in prod that an existing test should have caught) · suite duration and flake rate · % of defects that produced a new test · diff coverage on changed lines (code-coverage-analysis). Prune tests that never fail and duplicate others; keep the suite fast enough that people run it.

Related

smoke-sanity-testing, test-automation, flaky-test-management, release-readiness-testing, code-coverage-analysis, bug-reporting

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.