Open source / Early alpha

Your tests
still pass.Do they still catch
the same bugs?

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

One boundary. One missed fault.dev-001
subject.py
def is_adult(age):
    return age > 18
The declared fault excludes the eighteenth birthday.

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.

loss_observed3 old/new pairs + passing final controls
↗

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

Review a concrete fault,
not a quality score.

Removing a check can be intentional. TestDelta supplies a specific example for your review, with the execution history behind it.

01 /

Start with a test-only change.

Compare committed pytest revisions with source, helpers, configuration, and dependencies unchanged.

02 /

Apply the same selected fault.

Generate a bounded set of mutations with Cosmic Ray, then materialize identical mutation bytes for both suites.

03 /

Check the evidence.

A lost detection needs three consistent old/new pairs and valid final controls. Errors and unfinished work stay inconclusive.

Measured, with boundaries

Small scope.
Evidence in the open.

Inspect the fixtures, outcomes, and limitations. A finite conformance result and a real-project compatibility check answer different questions.

Finite conformance corpus

50cases

50 expected outcomes matched.

30 development cases. 20 frozen validation cases. Declared hand-authored controls exercise the comparison rules separately from automatic mutation generation.

  • 17 loss
  • 17 no loss
  • 16 invalid baseline

Finite expected-case agreement, not a real-project accuracy benchmark.

Inspect the frozen corpus
Real-repository compatibility

2test changes

Both remain inconclusive.

Two pinned Boltons PRs exercised real test-only changes. Runtime and collection errors prevented clean comparisons. No qualified loss witness was established.

Boltons #408inconclusive
Boltons #564inconclusive

Attempted mutation pairs are not automatically valid evidence.

Read the exact results

Mutation 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

Bring it to your
next test-only PR.

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 guide
.github/workflows/testdelta.yml
name: 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.

Terminal
git clone https://github.com/hyscodebase/testdelta.git
cd testdelta
uv sync --extra dev
uv run testdelta demo

Requires 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

Know what you’re running.

Python + pytest
Python 3.11–3.13. The native Action supports Ubuntu and macOS; Windows is outside its current scope.
Local execution
No LLM or API key in the comparison core. Prepare your own project dependencies; reports stay local unless you share them.
Trusted code only
Temporary workspaces are not a sandbox. Tests retain the runner user’s filesystem and network access.

Make a green check
worth a closer look.

Start with the demo. Read the evidence. Keep the decision yours.