pytest plugin for generating excel reports
Low maintenance activity. Last release 16 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install pytest-excelREADME as published on PyPI with version 1.8.1.
pytest-excel
================
pytest-excel is a plugin for `py.test <http://pytest.org>`_ 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