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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39bc29161b1e49e64d9ad3f35ca74aac641c7afcd5d4a79cd264cbbb8b3d2bea
|
|
| MD5 |
6ec00fb34bf0ad96788239be26f051cb
|
|
| BLAKE2b-256 |
3430345d2f7547e9ab8063d7f19011f6efacc892474070f5e9e4f3ef9439ed6c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0904e8ffaf83d4c4746ee97f16a3d2a4752be03359c2040009752a45650deeeb
|
|
| MD5 |
3456242d2732aa1a454842fe73510006
|
|
| BLAKE2b-256 |
5c3f88454059e19416d2bf10ed4ccb8c44f562c651c47363e76e7005ac238244
|