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.1.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest-pyreport-1.3.1.tar.gz
  • Upload date:
  • Size: 10.6 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.1.tar.gz
Algorithm Hash digest
SHA256 2983f63ffa9736dd0e8690aa3bce4cc46900777e6a65b386784c06e4fc12cb56
MD5 e9eb0f85e31370640787215598b9168d
BLAKE2b-256 8409352522e9f86fb3410afe19d35e68d942ba24141f21e83a4fe7436f4c1245

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_pyreport-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4fd74ab9cb4d8ad4791d8aa1ae7b9bac9d90e595f321de6a7bce1a359d54d291
MD5 647e5231778019d079f104c03d9cea53
BLAKE2b-256 5004765564071cd4980ca28eb17f2f5f1902957bab8effaca25d820bd89c68a3

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