Installation (pytest)
Install the package
Section titled “Install the package”pip install executable-stories-pytestRequires Python 3.12 or later and pytest.
No configuration required
Section titled “No configuration required”The package registers itself as a pytest plugin automatically. No changes to pytest.ini, pyproject.toml, or conftest.py are needed. Import story in your test file and start recording:
from executable_stories import storyDefault output
Section titled “Default output”After pytest finishes, the plugin writes .executable-stories/raw-run.json. Pass that file to executable-stories-formatters to render a report.
Generate a report
Section titled “Generate a report”npx executable-stories-formatters format --input .executable-stories/raw-run.json --format markdownInstall the formatters package once in your Node project or CI job:
npm install -D executable-stories-formattersFirst Story (pytest) — write your first pytest scenario.
pytest story & doc API — steps, docs, and adapter options.