Skip to main content

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:

  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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tdd_guard_pytest-0.1.2.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tdd_guard_pytest-0.1.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for tdd_guard_pytest-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5fafd89e0dac6140d7db46865d12c09075d0ed211b6aac7c300393994582be00
MD5 ab060d36ddbe48489b46594ab383af4a
BLAKE2b-256 e482204f333a4d9005d2b8bdd39108bd40542a342f7296451d332a48ccb32a5c

See more details on using hashes here.

File details

Details for the file tdd_guard_pytest-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for tdd_guard_pytest-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4ca9333315f859b841461c03760ff8fe5d3525ab2389230233e7ad594f90117e
MD5 5207fc87ec87f211f99d2cdf0010a6fd
BLAKE2b-256 c4c769e1e53cfc6e06776cfe633d806ac78f643fcf8474ec1bdbf6e374aeb214

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page