Skip to main content

pytest plugin for generating HTML reports

Project description

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

# pip install
$ pip install pytest-xhtml

usage

  • unit test
cd testing_unit
$ pytest test_sample.py --html=report.html

unit test

  • e2e test
# install selenium library
$ pip install selenium

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

e2e test

  • http test
# install pytest-req library
$ pip install pytest-req

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

http test

Develop

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

$ npm run build:css

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_xhtml-0.2.0.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_xhtml-0.2.0-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

Details for the file pytest_xhtml-0.2.0.tar.gz.

File metadata

  • Download URL: pytest_xhtml-0.2.0.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for pytest_xhtml-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8c21f8cedc4d40d00a1d893b46413502d32053a9a2e755b5249a2435e5e3c5ca
MD5 8153fb2cd0d4f0a4012f535665dc9674
BLAKE2b-256 45c0a372dbc5df736e2df7b2f4f8428994f7ee296cb024169961d7502c290311

See more details on using hashes here.

File details

Details for the file pytest_xhtml-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pytest_xhtml-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 30.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for pytest_xhtml-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d5c44e5391d5a4df6b1cacc491fd369ea85c599d3faf26e11092ba80dd03458
MD5 46a759f9c809b31922d3fbb9318e4ad5
BLAKE2b-256 2b42b549b4fec5290e22bd620085640c6d362cb69571454d564d1ac569aea6a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page