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.4.0.tar.gz (4.1 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.4.0-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest_xhtml-0.4.0.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for pytest_xhtml-0.4.0.tar.gz
Algorithm Hash digest
SHA256 2d24877431f146f7b502fb73f104998bf7146a61cf9301c34a03324cbe2dbed1
MD5 853c6ab199d42464de4a5a98302295c0
BLAKE2b-256 6dc380a800d9982ac95da206ae45592a59584e2248e022331949f4f4d1bb5a4c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytest_xhtml-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87724af9b2b2fba44baf4db7a4ae0be23765ff9881f036dc0783b46774ed0e7e
MD5 37eb8041e2008231b944b38e2d553e60
BLAKE2b-256 e5387195e1765378031f1eca39f98199d17bb67018ce9f977a2fce790b90eb62

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