Pytest plugin for TDD Guard - enforces Test-Driven Development principles
Project description
TDD Guard Pytest Reporter
Pytest plugin that captures test results for TDD Guard validation.
Requirements
- Python 3.8+
- pytest 6.0+
- TDD Guard installed globally
Installation
pip install tdd-guard-pytest
The plugin activates automatically when installed.
Configuration
Project Root Configuration
Set tdd_guard_project_root to your project root using any ONE of these methods:
Option 1: pyproject.toml
[tool.pytest.ini_options]
tdd_guard_project_root = "/absolute/path/to/project/root"
Option 2: pytest.ini
[pytest]
tdd_guard_project_root = /absolute/path/to/project/root
Option 3: setup.cfg
[tool:pytest]
tdd_guard_project_root = /absolute/path/to/project/root
Configuration Rules
- Path must be absolute
- Current directory must be within the configured project root
- Falls back to current directory if configuration is invalid
Development
When developing the pytest reporter, you need to configure the project root to ensure test results are saved to the correct location:
-
Copy the example configuration:
cp pytest.ini.example pytest.ini
-
Edit
pytest.iniand set the absolute path to your TDD Guard project root:[pytest] tdd_guard_project_root = /absolute/path/to/tdd-guard
Note: pytest.ini is gitignored to avoid committing machine-specific paths.
More Information
- Test results are saved to
.claude/tdd-guard/data/test.json - See TDD Guard documentation for complete setup
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tdd_guard_pytest-0.1.2.tar.gz.
File metadata
- Download URL: tdd_guard_pytest-0.1.2.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fafd89e0dac6140d7db46865d12c09075d0ed211b6aac7c300393994582be00
|
|
| MD5 |
ab060d36ddbe48489b46594ab383af4a
|
|
| BLAKE2b-256 |
e482204f333a4d9005d2b8bdd39108bd40542a342f7296451d332a48ccb32a5c
|
File details
Details for the file tdd_guard_pytest-0.1.2-py3-none-any.whl.
File metadata
- Download URL: tdd_guard_pytest-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ca9333315f859b841461c03760ff8fe5d3525ab2389230233e7ad594f90117e
|
|
| MD5 |
5207fc87ec87f211f99d2cdf0010a6fd
|
|
| BLAKE2b-256 |
c4c769e1e53cfc6e06776cfe633d806ac78f643fcf8474ec1bdbf6e374aeb214
|