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.3.0.tar.gz (1.2 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.3.0-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytest_xhtml-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2faf664c08c40117880699dccbe1d128f8933224e2f7fe3f4691e29303b365be
MD5 62ebd58d4d8dee3a26d95ef86dce2894
BLAKE2b-256 b5b4b15598b7116916cfd5a74c017ac8400ab9f5887414403130751139145a37

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytest_xhtml-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f2c62c1522f684a054eea6d68e6b4e539683ba33d6a952abc38c3dd5a7779b2
MD5 0c9c3c9fc0dd4dbfa0a96c4f833d0a86
BLAKE2b-256 4ddb86dcd575ac99c1fea6855bc11f487267b82ad93b3c6baf6b32ca6caac639

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