Skip to main content

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

Metadata

Release files for pytest-excel 1.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-excel 1.8.1
File Size Uploaded
pytest_excel-1.8.1.tar.gz 13.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-excel 1.8.1
File Interpreter ABI Platform
pytest_excel-1.8.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.8 kB

Release files / pytest_excel-1.8.1.tar.gz

Download URL pytest_excel-1.8.1.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
39bc29161b1e49e64d9ad3f35ca74aac641c7afcd5d4a79cd264cbbb8b3d2bea
BLAKE2b-256 checksum
How to use checksums
3430345d2f7547e9ab8063d7f19011f6efacc892474070f5e9e4f3ef9439ed6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release files / pytest_excel-1.8.1-py3-none-any.whl

Download URL pytest_excel-1.8.1-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0904e8ffaf83d4c4746ee97f16a3d2a4752be03359c2040009752a45650deeeb
BLAKE2b-256 checksum
How to use checksums
5c3f88454059e19416d2bf10ed4ccb8c44f562c651c47363e76e7005ac238244
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

1.8.1 This release

2 release files

1.8.0

2 release files

1.7.0

1 release file

1.6.0

1 release file

1.5.2

1 release file

1.5.1

1 release file

1.5.0

1 release file

1.4.2

1 release file

1.4.1

1 release file

1.4.0

1 release file

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page