A small, standalone sample project that runs Markdown specs as tests with
Varar, using the varar-unittest adapter —
nothing but the standard library's test runner. Copy it as the starting
point for your own project.
The .md files at the project root are the specs — they run as tests.
uv run python -m unittestEach example in the Markdown specs becomes one unittest test.
test_var.py is the entire integration — a two-line module
that generates one TestCase per spec, which plain python -m unittest
(or any unittest-compatible runner) then discovers like hand-written tests.
varar.config.jsonis the single source of truth:docs.includeglobs the Markdown specs andstepsglobs the step-definition files.steps/*.steps.pydefine the steps withsteps+@stimulus/@sensor. A stimulus returns the next state, a sensor returns a value for Varar to compare against what the Markdown says.src/yahtzee_example/is the sample's domain code — an ordinary installable package the steps import, just like your production code.
In the varar-dev/varar monorepo this sample
resolves the Varar packages from [tool.uv.sources] path sources, gating
trunk against the local build. The release sync to
varar-dev/varar-examples deletes
that table and pins the released PyPI version — there, the plain
varar-unittest dependency is all a real project needs.