Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ssrikanta/pytest-excel
https://github.com/ssrikanta/pytest-excel
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ssrikanta/pytest-excel
- Owner: ssrikanta
- License: mit
- Created: 2016-08-04T07:20:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T08:54:00.000Z (5 months ago)
- Last Synced: 2024-09-22T16:37:03.277Z (about 2 months ago)
- Language: Python
- Size: 38.1 KB
- Stars: 15
- Watchers: 3
- Forks: 11
- Open Issues: 6
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
Awesome Lists containing this project
README
pytest-excel
================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
- pandasInstallation
------------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