Skip to main content

pytest plugin for generating excel reports

Project description

pytest-excel is a plugin for py.test that allows to to create excel report for test results.

Requirements

You will need the following prerequisites in order to use pytest-excel:

  • Python 3.11 and above

  • pytest

  • pandas

  • openpyxl

Installation

To install pytest-excel and required dependencies:

$ pip install pytest-excel openpyxl

Then run your tests with:

$ py.test --excelreport=report.xls

If you would like more detailed output (one test per line), then you may use the verbose option:

$ py.test --verbose

If you would like to run tests without execution to collect test doc string:

$ py.test --excelreport=report.xls --collect-only

If you would like to get timestamp in the as filename:

$ py.test --excelreport=report%Y-%M-dT%H%.xls

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_excel-1.8.1.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

pytest_excel-1.8.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pytest_excel-1.8.1.tar.gz.

File metadata

  • Download URL: pytest_excel-1.8.1.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for pytest_excel-1.8.1.tar.gz
Algorithm Hash digest
SHA256 39bc29161b1e49e64d9ad3f35ca74aac641c7afcd5d4a79cd264cbbb8b3d2bea
MD5 6ec00fb34bf0ad96788239be26f051cb
BLAKE2b-256 3430345d2f7547e9ab8063d7f19011f6efacc892474070f5e9e4f3ef9439ed6c

See more details on using hashes here.

File details

Details for the file pytest_excel-1.8.1-py3-none-any.whl.

File metadata

  • Download URL: pytest_excel-1.8.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for pytest_excel-1.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0904e8ffaf83d4c4746ee97f16a3d2a4752be03359c2040009752a45650deeeb
MD5 3456242d2732aa1a454842fe73510006
BLAKE2b-256 5c3f88454059e19416d2bf10ed4ccb8c44f562c651c47363e76e7005ac238244

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