Metadata-Version: 2.4
Name: pytest-xhtml
Version: 0.2.0
Summary: pytest plugin for generating HTML reports
Project-URL: Homepage, https://github.com/seldomqa/pytest-xhtml
Project-URL: Source, https://github.com/seldomqa/pytest-xhtml
Project-URL: Tracker, https://github.com/seldomqa/pytest-xhtml/issues
Author-email: Dave Hunt <dhunt@mozilla.com>, Jim Brannlund <jimbrannlund@fastmail.com>
License-Expression: MPL-2.0
License-File: LICENSE
Keywords: html,pytest,report
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Pytest
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
Requires-Python: >=3.9
Requires-Dist: jinja2>=3
Requires-Dist: pytest-metadata>=2
Requires-Dist: pytest>=7
Provides-Extra: docs
Requires-Dist: pip-tools>=6.13; extra == 'docs'
Provides-Extra: test
Requires-Dist: assertpy>=1.1; extra == 'test'
Requires-Dist: beautifulsoup4>=4.11.1; extra == 'test'
Requires-Dist: black>=22.1; extra == 'test'
Requires-Dist: flake8>=4.0.1; extra == 'test'
Requires-Dist: pre-commit>=2.17; extra == 'test'
Requires-Dist: pytest-mock>=3.7; extra == 'test'
Requires-Dist: pytest-rerunfailures>=11.1.2; extra == 'test'
Requires-Dist: pytest-xdist>=2.4; extra == 'test'
Requires-Dist: selenium>=4.3; extra == 'test'
Requires-Dist: tox>=3.24.5; extra == 'test'
Description-Content-Type: text/markdown

# pytest-xhtml

pytest-xhtml is a plugin for `pytest` that generates a HTML report for test results.

⚠ **`pytest-xhtml` is the alternative library for `pytest-html`. If you have installed `pytest-html`, please uninstall it first.**

## install

```bash
# pip install
$ pip install pytest-xhtml
```

## usage

* unit test

```bash
cd testing_unit
$ pytest test_sample.py --html=report.html
```

![unit test](./images/unit_report.png)

* e2e test

```bash
# install selenium library
$ pip install selenium

$ cd testing_e2e
$ pytest test_selenium.py --html=report.html
```

![e2e test](./images/e2e_report.png)

* http test

```bash
# install pytest-req library
$ pip install pytest-req

$ cd testing_req
$ pytest test_req.py --html=report.html
```

![http test](./images/http_report.png)

## Develop

```bash
# develop 
git clone https://github.com/seldomQA/pytest-xhtml.git
$ cd pytest-xhtml
$ pip install .

$ npm run build:css
```
