Skip to main content

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:

  1. Copy the example configuration:

    cp pytest.ini.example pytest.ini
    
  2. Edit pytest.ini and 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

License

MIT

Metadata

Release files for tdd-guard-pytest 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tdd-guard-pytest 0.1.2
File Size Uploaded
tdd_guard_pytest-0.1.2.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tdd-guard-pytest 0.1.2
File Interpreter ABI Platform
tdd_guard_pytest-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.8 kB

Release files / tdd_guard_pytest-0.1.2.tar.gz

Download URL tdd_guard_pytest-0.1.2.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5fafd89e0dac6140d7db46865d12c09075d0ed211b6aac7c300393994582be00
BLAKE2b-256 checksum
How to use checksums
e482204f333a4d9005d2b8bdd39108bd40542a342f7296451d332a48ccb32a5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Release files / tdd_guard_pytest-0.1.2-py3-none-any.whl

Download URL tdd_guard_pytest-0.1.2-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ca9333315f859b841461c03760ff8fe5d3525ab2389230233e7ad594f90117e
BLAKE2b-256 checksum
How to use checksums
c4c769e1e53cfc6e06776cfe633d806ac78f643fcf8474ec1bdbf6e374aeb214
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page