Metadata-Version: 2.4
Name: pytest-htmlx
Version: 0.3.0
Summary: Custom HTML report plugin for Pytest with charts and tables
Home-page: https://github.com/devgarigapati/pytest-htmlx
Author: Devaraju Garigapati
Author-email: Devaraju Garigapati <devaraju.garigapati@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/devgarigapati/pytest-htmlx
Project-URL: Repository, https://github.com/devgarigapati/pytest-htmlx
Project-URL: Issues, https://github.com/devgarigapati/pytest-htmlx/issues
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Testing
Classifier: Framework :: Pytest
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pytest
Requires-Dist: jinja2
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# PYTEST-HTMLX

![PyPI - Version](https://img.shields.io/pypi/v/pytest-htmlx) ![PyPI - Downloads](https://img.shields.io/pypi/dm/pytest-htmlx) ![Python Version](https://img.shields.io/pypi/pyversions/pytest-htmlx) ![License](https://img.shields.io/pypi/l/pytest-htmlx) ![GitHub Issues](https://img.shields.io/github/issues/devarajug/pytest-htmlx) ![GitHub Stars](https://img.shields.io/github/stars/devarajug/pytest-htmlx?style=social)

**pytest-htmlx** is a plugin for [`pytest`](https://docs.pytest.org/) that generate beautiful and customizable HTML reports for your `pytest` test suite with ease.

This package automatically creates a detailed HTML report after running your tests, helping you better visualize test results, errors, and logs.


---

## 📦 Installation

Install it via pip:

```bash
pip install pytest-htmlx
```

## 🚀 Usage
Simply run your tests with the `--htmlx` flag:
```bash
pytest --htmlx
```
This generates a report named `report.html` in the current directory.

To specify a custom report file path:
```bash
pytest --htmlx=results/my-report.html
```

## ✨ Features
- Interactive, modern HTML report
- Summary of passed/failed/skipped tests
- Stack traces and log capture

## 📸 HTML Report Screenshot

Below is an example of what the HTML report looks like:
![HTML Report Example](https://raw.githubusercontent.com/devarajug/pytest-htmlx/main/pytest-htmlx.png)

## 📝 License
This project is licensed under the MIT License.

## 🙌 Contributing
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

