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.9, 3.10, 3.11 and 3.12

  • pytest

  • pandas

Installation

To install pytest-excel:

$�pip install pytest-excel

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

Uploaded Source

File details

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

File metadata

  • Download URL: pytest_excel-1.7.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for pytest_excel-1.7.0.tar.gz
Algorithm Hash digest
SHA256 d7f54d24c25a2f6052305809d4e0d224434fbe7a139bd162e3326cba7105e72a
MD5 0856533b60d849705c9165c5b7b8bc18
BLAKE2b-256 27c090fcb85b2f3f6978072adfbcb947ef7c706edfec77361aa738726844465f

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