An open API service indexing awesome lists of open source software.

https://github.com/pytest-with-eric/pytest-html-example

How To Create Custom HTML Test Reports With pytest-html
https://github.com/pytest-with-eric/pytest-html-example

pytest-html pytest-html-reporter

Last synced: 3 months ago
JSON representation

How To Create Custom HTML Test Reports With pytest-html

Awesome Lists containing this project

README

        

# Pytest Generate HTML Report Example

This repo contains the sample code for the article - [How To Create Custom HTML Test Reports With pytest-html](https://pytest-with-eric.com/plugins/pytest-html/)

## Requirements
* Python (3.12)

## Installation

To install the project, you need to have Poetry installed. If you don't have it installed, you can install it by following the instructions [here](https://python-poetry.org/docs/#installation).

## Usage

To run the tests, you can use the following command:

```bash
$ poetry run pytest --html=report.html
```

or
```bash
$ poetry shell
$ pytest --html=report.html
```

If you have any questions about the project please raise an Issue on GitHub.