TestSeal

Test integrity and CI analyzer

A passing build can hide a test that was made easier to pass. TestSeal flags weakened checks in Python pull requests so reviewers can see which guarantees a change removes.

TestSeal social card comparing a strong assertion with a weakened one

Measured results

  • 98.3%

    of seeded weakenings detected

    Measured on deliberate changes to test files, including disabled tests and assertion replacements.

  • 51.6%

    fewer Git subprocess launches

    Compared with a baseline that loaded every changed file.

  • 0.62 s

    median time for annotated feedback

    Measured locally on historical diffs with the GitHub Actions reporting path.

What I built

I matched Python syntax trees across Git revisions at the level of individual tests. That lets the analyzer detect a replaced assertion or disabled test even when the assertion count stays the same. It reads source and Git data locally without importing the target project.

I scoped Git reads to the files needed for comparison and integrated the analyzer with pre-commit and GitHub Actions. CI findings point to the affected code, giving reviewers a concrete change to inspect.

Stack

  • Python
  • Node.js
  • Git
  • pytest
  • GitHub Actions
  • pre-commit