regression-testing

Installation
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.

Installs
4
GitHub Stars
4
First Seen
Oct 24, 2026