Files
turso/tools/thesis/pyproject.toml
Pekka Enberg 31d8686632 Local Antithesis test suite runner
Add `thesis`, a local runner for the Antithesis Test Composer templates
in testing/antithesis/, replacing stress-composer/shuffle-run.sh.

thesis runs a template as a single seeded timeline: first_ commands,
randomly chosen driver steps, then finally_ and eventually_ commands.
It seeds Python's global RNG in every command it launches, which the
Antithesis SDK's get_random() and random_choice() fall back to outside
Antithesis, so the same seed replays the same commands with the same
random choices. It also evaluates SDK assertions, which do not raise on
their own: a false always() or a reached unreachable() fails the run,
and a failure prints the command that reproduces it.

Run it from the repository root with:

  uv run --group antithesis thesis run testing/antithesis/stress-composer --seed 42

The antithesis dependency group builds pyturso from the checkout, so
runs exercise local changes.
2026-09-27 10:33:01 +03:00

24 lines
479 B
TOML

[project]
name = "thesis"
version = "0.1.0"
description = "Local, seeded runner for Antithesis Test Composer templates"
readme = "README.md"
requires-python = ">=3.13"
dependencies = []
[project.scripts]
thesis = "thesis.cli:main"
[dependency-groups]
dev = ["pytest>=8", "antithesis>=0.1.17"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/thesis"]
[tool.pytest.ini_options]
testpaths = ["tests"]