Start with a test-only change.
Compare committed pytest revisions with source, helpers, configuration, and dependencies unchanged.
Open source / Early alpha
A test refactor can keep the suite green and lose detection. TestDelta compares two pytest test revisions against the same selected faults, so you can review what changed.
Python + pytest No model, API key, or LLM judge
def is_adult(age):
return age > 18
Old tests
assert is_adult(18) is True
Caught the fault
New tests
assert is_adult(21) is True
assert is_adult(17) is False
Passed. Missed the fault.
Illustration of an executed synthetic case.
This page does not run tests. Read the recorded evidence
Unchanged production code
Identical fault on both revisions
Evidence you can inspect
Behind the green check
Removing a check can be intentional. TestDelta supplies a specific example for your review, with the execution history behind it.
Compare committed pytest revisions with source, helpers, configuration, and dependencies unchanged.
Generate a bounded set of mutations with Cosmic Ray, then materialize identical mutation bytes for both suites.
A lost detection needs three consistent old/new pairs and valid final controls. Errors and unfinished work stay inconclusive.
Measured, with boundaries
Inspect the fixtures, outcomes, and limitations. A finite conformance result and a real-project compatibility check answer different questions.
50cases
30 development cases. 20 frozen validation cases. Declared hand-authored controls exercise the comparison rules separately from automatic mutation generation.
Finite expected-case agreement, not a real-project accuracy benchmark.
Inspect the frozen corpus2test changes
Two pinned Boltons PRs exercised real test-only changes. Runtime and collection errors prevented clean comparisons. No qualified loss witness was established.
Attempted mutation pairs are not automatically valid evidence.
Read the exact resultsMutation generation uses Cosmic Ray 8.7.0. These hand-authored corpus controls are a separate conformance exercise. Read the engine evidence
Try a small, trusted project
Prepare your project’s test environment, define the selected paths, and use a pinned Action.
.testdelta.toml
source_modules = ["src/pricing.py"]
test_paths = ["tests/test_pricing.py"]Replace the example paths and dependency command. Commit the manifest before the compared test change, or use the documented external config.
GitHub Action guidename: TestDelta evidence
on: pull_request
permissions:
contents: read
jobs:
compare:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1
with:
python-version: '3.13'
# Replace with your project's locked test dependencies.
- run: python -m pip install 'pytest==8.4.2'
- name: Compare test revisions
uses: hyscodebase/testdelta@55d64056c14834eab99cf49ca86c4786a14804bd
with:
base: ${{ github.event.pull_request.base.sha }}
head: ${{ github.event.pull_request.head.sha }}
python: python
max-mutants: '10'
budget-seconds: '120'Pinned to a full reviewed commit SHA.
git clone https://github.com/hyscodebase/testdelta.git
cd testdelta
uv sync --extra dev
uv run testdelta demoRequires Python 3.11–3.13, Git, and uv. Install from the repository; a PyPI release is not assumed.
The demo executes a synthetic Git comparison using actual Cosmic Ray mutations and pytest. Open .testdelta/demo/report.html for the report.
A deliberate first scope
Start with the demo. Read the evidence. Keep the decision yours.