/testing-html

Testbed for pytest-html

Primary LanguagePython

Testing pytest-html

Clone this repo

Fork and clone the pytest-html repo

Make sure you have poetry and a suitable python version (3.6+).

Run poetry install

Then poetry shell

Then you can run the tests with pytest -s --html <path/name.html>

Example:

$ pytest -s --html reports/report.html

Add the --next-gen flag to get the new report

Add the --self-contained-html flag to get a self-contained report