tdd-guard-pytest
Pytest plugin for TDD Guard - enforces Test-Driven Development principles
What it is and what it does
This is a pytest plugin that automatically captures test results during test runs and exports them in a format TDD Guard can consume for validation. It integrates seamlessly into pytest's test execution pipeline and requires minimal setup—mainly configuring an absolute path to your project root in a standard pytest configuration file.
The plugin is designed to work with TDD Guard, a separate tool that enforces Test-Driven Development practices. After you install the plugin, it activates automatically and writes test results to a specific location (.claude/tdd-guard/data/test.json) where TDD Guard can access them. It supports Python 3.8 through 3.13 and depends only on pytest itself, keeping the dependency footprint small.
Use it for:
- Integrate pytest test results with TDD Guard for automated TDD principle enforcement in CI/CD pipelines
- Capture test execution data to validate that tests are written before implementation code
- Monitor test-driven development compliance across a project using pytest as the test runner
- Export test metadata for TDD Guard analysis without modifying existing test code
- Enforce development workflow rules by feeding pytest results into TDD Guard validation
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A pytest plugin that captures test results and integrates them with TDD Guard for enforcing Test-Driven Development principles during test execution.
Yes, if you are already using TDD Guard and pytest together. The plugin is actively maintained, has no known vulnerabilities, and adds minimal friction—it requires only pytest and a one-time configuration of your project root. Install it to automate test result capture for TDD Guard validation. If you are not using TDD Guard, this plugin has no standalone value.
Install
tdd-guard-pytest on PyPI
pip
pip install tdd-guard-pytestuv
uv add tdd-guard-pytestpoetry
poetry add tdd-guard-pytestInstalling tdd-guard-pytest
Before you install
Low install friction with a single runtime dependency on pytest. The package is actively maintained with recent releases and no known vulnerabilities. Requires Python 3.8+ and pytest 6.0+, both widely available.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install tdd-guard-pytest
# Configure in pyproject.toml, pytest.ini, or setup.cfg:
# [tool.pytest.ini_options]
# tdd_guard_project_root = "/absolute/path/to/project/root"
# Plugin activates automatically; test results saved to .claude/tdd-guard/data/test.json
Requires TDD Guard installed globally and an absolute path to project root configured in pytest configuration file; current directory must be within the configured project root.
Verify before relying
- Exact behavior and constraints when TDD Guard is not installed globally
- How test results are used by TDD Guard after capture
- Whether the plugin works with pytest plugins that also modify test result handling
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — pytest |
| Maintenance | actively maintained — 382 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 168,873/month — #10,433 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tdd_guard_pytest-0.1.2-py3-none-any.whl
Keywords: tdd, test-driven-development, testing, pytest, claude
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
pytest-pytestrailA pytest plugin that decorates test functions…
permissive · top 15,000 on PyPI
qase-pytestA pytest plugin that reports test results to…
permissive · top 15,000 on PyPI
pytest-pspecFormats pytest test output in RSpec-style…
permissive · top 15,000 on PyPI
pytest-html-reporterGenerates static HTML test reports from pytest…
permissive · top 15,000 on PyPI
pytest-qtpytest-qt is a pytest plugin that provides…
permissive · top 5,000 on PyPI
pytest-odoopytest-odoo is a pytest plugin that runs Odoo…
agpl · top 15,000 on PyPI
pytest-loguruExtends pytest's caplog fixture to capture and…
permissive · top 15,000 on PyPI
pytest-reportportalA pytest plugin that integrates test execution…
permissive · top 5,000 on PyPI
pytest-custom-reportA pytest plugin that lets you customize the…
permissive · top 15,000 on PyPI
pytest-specpytest-spec is a pytest plugin that reformats…
copyleft · top 15,000 on PyPI