Metadata-Version: 2.4
Name: testreport-io-pytest
Version: 0.1.0
Summary: Pytest reporter that writes testreport.io viewer-compatible JSON for Playwright Python projects.
Author-email: Rahul Sharma <rahul_sharma1818@yahoo.com>
License: MIT
Keywords: pytest,playwright,playwright-python,test-report,testreport.io
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: pytest>=7

# testreport-io-pytest

Pytest reporter for Playwright Python projects. It writes the same
`custom-report/<runId>/results.json` format consumed by the
`testreport.io-io` npm viewer.

## Local Install

From this package folder:

```bash
pip install -e .
```

## Usage

Run pytest normally:

```bash
pytest
npx playwright-viewer serve --report-dir custom-report
```

Use a custom report directory:

```bash
pytest --testreport-dir custom-report
```

Disable the reporter for one run:

```bash
pytest --testreport-disable
```

## Notes

This plugin is for Python/pytest. JavaScript Playwright projects should keep
using the npm reporter from `testreport.io-io/reporter`.
