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
Requires Python 3.11+ and git.
Usage
whattotest # from the previous tag to HEAD
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 --format html --output map.html # a page to open or share
whattotest v1.4.0 --output map.html --output map.json # several formats, one analysis
whattotest v1.4.0 --history-months 12 # longer history for risk
whattotest --init # create .whattotest.toml
The HTML report is a single self-contained file (no scripts, no external
assets, light and dark themes): attach it to the release, the test plan or a
chat message. --max-chars 65000 shortens the Markdown report to fit a GitHub
comment.
GitHub Action
Map every release pull request, with the map as a comment that is updated on each push:
name: whattotest
on:
pull_request:
branches: [main]
permissions:
contents: read
pull-requests: write
jobs:
impact-map:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # risk and tags need the history
- uses: jussaragranja/whattotest@v0
Or map each release when it is tagged (previous tag → new tag):
on:
push:
tags: ["v*"]
The map goes to the job summary and, in pull requests, to a single comment.
The HTML, Markdown and JSON reports are uploaded as the whattotest-report
artifact; the JSON is the input for the
test plan skill.
| Input | Default | |
|---|---|---|
range |
PR base → HEAD, or previous tag → HEAD | e.g. v1.4.0..v1.5.0 |
config |
.whattotest.toml at the head ref |
|
history-months |
6 | |
comment |
true |
Comment on the pull request |
artifact |
true |
Upload the reports |
artifact-name |
whattotest-report |
Outputs: high, medium, low (number of areas per risk level), html and
json (report paths). The action is informational and never fails the build;
use the outputs if you want a gate:
- id: map
uses: jussaragranja/whattotest@v0
- if: steps.map.outputs.high != '0'
run: echo "::notice::${{ steps.map.outputs.high }} high-risk areas: plan a full regression"
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.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| whattotest-0.2.0.tar.gz | 33.4 kB | With provenance | Details for whattotest-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| whattotest-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for whattotest-0.2.0-py3-none-any.whl |
Total release size: 62.5 kB
Release files / whattotest-0.2.0.tar.gz
| Download URL | whattotest-0.2.0.tar.gz |
|---|---|
| Size | 33.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb10cf82d81c4e35120d340ee6d68ffdb47b08218533033d97a5e054b48a2782
|
|
BLAKE2b-256 checksum How to use checksums |
4168f6e2ced7a1150a67221deda345f6ec28083f1332f4d10f9f2d79ec15a0c5
|
| 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 logRelease files / whattotest-0.2.0-py3-none-any.whl
| Download URL | whattotest-0.2.0-py3-none-any.whl |
|---|---|
| Size | 29.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d1343f95dcdc6282ba45a525326fc4da202929a854f3bd8f3155ea8449d84cd
|
|
BLAKE2b-256 checksum How to use checksums |
455ab5f7f29c3b58d7ac173e7cb5b5a74143f1775281c13636f3e40012eb26c8
|
| 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 logSecurity for whattotest 0.2.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.
Attestation for whattotest-0.2.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 logA 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.