Skip to main content

whattotest: Release Impact Map for QA

What to test first in every release.

Risk-based test prioritisation from your git history: between version A and version B, what changed, what it can break, what to test first, and what was not changed.

Every release, QA gets a list of commits and has to decide what goes into the regression. whattotest turns the git history into an impact map, explained in business areas, with the changes that rarely show up in a PR description: database migrations, new environment variables, feature flags, major dependency upgrades.

  • No AI, no API key, no dependencies. Python standard library and git.
  • Zero configuration to start; areas are inferred from the project structure. A small optional file makes them match your business language.
  • Every risk rating explains why.

Illustrative output for a typical shop application:

$ whattotest v1.4.0..v1.5.0

RELEASE IMPACT MAP · v1.4.0 → v1.5.0 · 47 commits · 6 stories

SUMMARY
  🔴 2 high · 🟡 3 medium · 🟢 4 low · ⚪ 5 not impacted
  ⚠ 1 migration · 2 env vars · 1 dependency

AREAS
  🔴 Payments   HIGH    large change (14 files, 612 lines); 9 bug-fix commits in these files
                        recently; new database migration (V42__add_installments.sql);
                        no linked tests for InstallmentService.java
  🔴 Checkout   HIGH    hotspot: CheckoutController.java change often; new environment variable
                        PAYMENT_PROVIDER_TIMEOUT; 4 different authors in this release
  🟡 Coupons    MEDIUM  6 files, 140 lines changed; 3 bug-fix commits in these files recently
  🟢 Profile    LOW     small change (1 file, 4 lines)
  ⚪ not impacted: Login, Search, Catalog, Notifications, Admin

SILENT CHANGES
  Migration     new database migration          db/migration/V42__add_installments.sql
  Env var       new environment variable PAYMENT_PROVIDER_TIMEOUT   application.yml
  Dependency    com.stripe:stripe-java 22.1.0 → 24.0.0 (major)      pom.xml

STORIES
  SHOP-123   Free shipping coupon     Coupons, Checkout
  SHOP-130   Installments             Payments

SUGGESTED REGRESSION SCOPE
  Full regression:  Payments, Checkout
  Focused tests:    Coupons
  Smoke test:       Profile
  Not changed:      Login, Search, Catalog, Notifications, Admin  (lowest priority)

TEST GAPS (changed code with no linked test)
  Payments             src/main/java/com/shop/payment/InstallmentService.java

Install

pip install whattotest
# until the first PyPI release, install from GitHub:
pip install git+https://github.com/jussaragranja/whattotest.git

Requires Python 3.11+ and git.

Usage

whattotest v1.4.0..v1.5.0              # between two tags
whattotest main..release/2.8           # between branches
whattotest --base main                 # current branch vs main (a PR)
whattotest v1.4.0 --format md          # markdown for the release issue / wiki
whattotest v1.4.0 --format json        # for tools and AI agents
whattotest v1.4.0 --history-months 12  # longer history for risk
whattotest --init                      # create .whattotest.toml

What it analyses

Analysis How
Areas Files grouped into business areas: Java/Kotlin packages below the common prefix, Python packages and modules, features/, modules/, packages/ folders; or your own mapping
Risk per area, with reasons Size of the change, bug-fix commits on those files in recent history, hotspots (files that change often), silent changes, changed code with no linked test, number of authors
Silent changes Database migrations (Flyway, Liquibase, Alembic, Rails, Prisma, Django; editing an old migration is flagged), dependency changes in Maven, Gradle, version catalogs, npm, pip and pyproject (major upgrades flagged), new environment variables in Java/Python/JS code, Spring/compose placeholders and .env files, feature flags (with your patterns)
Tests Tests linked to changed code by naming convention (PaymentService ↔ PaymentServiceTest, pricing.py ↔ test_pricing.py, Cart.tsx ↔ Cart.test.tsx) and by imports; test gaps
Stories Issue keys (SHOP-123) from commit messages, mapped to the areas they touched. Dependency bots and non-ticket keys (CVE-, GHSA-…) are ignored
Scope High → full regression, medium → focused tests, low → smoke, not changed → lowest priority

Configuration (optional): .whattotest.toml

[areas]
Checkout = ["src/main/java/**/checkout/**", "web/src/features/checkout/**"]
Payments = ["src/main/java/**/payment/**", "db/migration/**"]

[tests]
Checkout = ["e2e/checkout/**"]

[signals]
flags   = ['isEnabled\("([\w.-]+)"\)', 'featureFlags\.(\w+)']
tickets = '\b[A-Z][A-Z0-9]+-\d+\b'

[risk]
history_months = 6
fix_patterns   = ["fix", "bug", "hotfix", "revert"]

ignore = ["docs/**", "**/*.md"]

The configuration is read from the head ref of the range.

Does it work? Retrospective validation

We mapped 25 consecutive releases of three open-source projects with no configuration, then looked at the bug fixes made after each release.

Project Areas rated high that got a later bug fix Medium Low Not changed
jsoup (Java) 96% 73% 38% 8%
click (Python) 67% 40% 27% 9%
requests (Python) — 30% 12% 7%

In jsoup, the 29% of areas rated high or medium concentrated 79% of later fixes. But "not changed" is not "bug-free": in requests, half of later fixes landed in areas the release did not touch (old bugs, not regressions). Details and limitations: research/RESULTS.md.

For AI coding agents

skills/impact-to-test-plan/SKILL.md lets the assistant you already use (Claude Code, Copilot, Codex, Cursor…) turn the JSON map into exploratory test charters per risky area. Copy it to .agents/skills/ and/or .claude/skills/.

Limitations

  • Areas inferred without configuration follow the code structure, which is not always the business structure. Configure [areas] for best results.
  • Risk is a prioritisation aid built from history, not a prediction of bugs.
  • Test links are static (names and imports), not coverage data.
  • One repository per run; a release spanning backend, web and mobile repositories is planned.

Development

python -m venv .venv && .venv/bin/pip install -e ".[dev]"
.venv/bin/python -m pytest

License

MIT

Metadata

Release files for whattotest 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for whattotest 0.1.0
File Size Uploaded Provenance Actions
whattotest-0.1.0.tar.gz 26.2 kB With provenance Details for whattotest-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for whattotest 0.1.0
File Interpreter ABI Platform Actions
whattotest-0.1.0-py3-none-any.whl Python 3 none any Details for whattotest-0.1.0-py3-none-any.whl

Total release size: 49.0 kB

Release files / whattotest-0.1.0.tar.gz

Download URL whattotest-0.1.0.tar.gz
Size 26.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5c216c5a86c5fa1b26cb1d5e319bf71123b6022b4fe82fd69b1d7485681471a7
BLAKE2b-256 checksum
How to use checksums
c448bb32acd2718121f8cf244fb53ca4fa0a9d56dae8c78a9bcefbe857cffe44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / whattotest-0.1.0-py3-none-any.whl

Download URL whattotest-0.1.0-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f683479576ee24a7dfed472888b5fada3ed1e03d91028492c682ec08846b98f0
BLAKE2b-256 checksum
How to use checksums
f001a46f8d34ef24fda725fbce6db7fbc239cf54b3236cf14c7a462c714e891c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for whattotest 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for whattotest-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page