Skip to main content

PyReport is a lightweight reporting plugin for Pytest that provides concise HTML report

Project description

PyReport

PyPI - Downloads

Quick overview

PyReport is a lightweight reporting plugin for Pytest that provides concise HTML reports by parsing JunitXML test results

Pre-requisites

To be able to use this plugin you will need below dependencies that will be installed automatically with PyReport:

  • Python >=3.7
  • Jinja2
  • Pytest
  • matplotlib
  • requests
  • logstyle

Getting started

Installation

To start using PyReport please follow below instructions:

  • Install pytest-pyreport plugin:
pip install pytest-pyreport==<version>

Report generation

  • Run tests using below command to generate pyreport.html file with test results:

    pytest --junitxml=result.xml -o junit_family="xunit1" --pyreport
    
  • Run tests using below command if you want to send telegram notification:

    pytest --junitxml=result.xml -o junit_family="xunit1" --pyreport --telegram-pyreport <chat id> <bot token>
    
    • Prerequisites:
      • You need your own Telegram bot, which can be easily created using Telegram instructions. You can take the “chat ID” and “bot token” from there.

Test results

  • Once test run completed you should see pyreport.html file that auto generated by using above commands.
    Open it and check the test results as shown in below presentation

Presentation

pyreport

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-pyreport-1.3.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

pytest_pyreport-1.3.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file pytest-pyreport-1.3.0.tar.gz.

File metadata

  • Download URL: pytest-pyreport-1.3.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pytest-pyreport-1.3.0.tar.gz
Algorithm Hash digest
SHA256 901a7992eb83c59a575fc69ac223e6ebe12b330f503434f0903b2de4adb3a4b8
MD5 630d2d6e6906850a014164a264e55991
BLAKE2b-256 34e574c849abd04f6e3f9884e10380f2128b553bc4f29c722ea18ba17eff4201

See more details on using hashes here.

File details

Details for the file pytest_pyreport-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_pyreport-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c68743c35fd3a900d9d3264089461b31724d343072cbbb976c09951bddae17b
MD5 ed3fbb57347a58948e2924355b8f366f
BLAKE2b-256 5858f29e43d7d9eae28494957069d0c70123a4002142f27bb4bf2f6e35794fdb

See more details on using hashes here.

Supported by

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