pytest-aggreport
This pytest plugin was generated with Cookiecutter along with @hackebrot's cookiecutter-pytest-plugin template.
Features
- Generate aggregated test result group by test case name with details;
- Embed test result into html report if pytest-html is available;
Requirements
- python >= 3.6
- pytest >= 6.2.2
- beautifultable >= 1.0.1
- pytest-repeat >= 0.8.0
Installation
You can install "pytest-aggreport" via pip from PyPI:
$ pip install pytest-aggreport
Usage
Pytest will automatically find the plugin and use it when you run pytest with --count argument (enable pytest-repeat plugin). When test is done, you will see a summary report in the terminal:
$ pytest --count=5
...
------------------------- aggregate summary report -----------------
+-------------+------+------+-------+--------+-------+-------+-------+---------+
| TestCase Na | Pass | Fail | Skipp | Pass R | AVG ( | MAX ( | MIN ( | STDDEV |
| me | ed | ed | ed | ate | s) | s) | s) | (s) |
+-------------+------+------+-------+--------+-------+-------+-------+---------+
| test_pass | 5 | 0 | 0 | 100.00 | 0.1 | 0.1 | 0.1 | 0.0 |
| | | | | % | | | | |
+-------------+------+------+-------+--------+-------+-------+-------+---------+
| test_skip | 0 | 0 | 5 | 0.00% | 0.0 | 0.0 | 0.0 | 0.0 |
+-------------+------+------+-------+--------+-------+-------+-------+---------+
| test_fail | 0 | 5 | 0 | 0.00% | 0.15 | 0.15 | 0.15 | 0.0 |
+-------------+------+------+-------+--------+-------+-------+-------+---------+
| test_xpass | 5 | 0 | 0 | 100.00 | 0.1 | 0.1 | 0.1 | 0.0 |
| | | | | % | | | | |
+-------------+------+------+-------+--------+-------+-------+-------+---------+
| test_xfail | 0 | 5 | 0 | 0.00% | 0.1 | 0.1 | 0.1 | 0.0 |
+-------------+------+------+-------+--------+-------+-------+-------+---------+
...
If pytest-html is enabled(run with --html argument), then a summary report will also be embedded in the html report:
To disable the plugin, you can use the -p argument, for example:
$ pytest -p no:aggreport
Contributing
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
License
Distributed under the terms of the MIT license, "pytest-aggreport" is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
Metadata
Release files for pytest-aggreport 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest-aggreport-0.1.5.tar.gz | 6.3 kB | Without provenance | Details for pytest-aggreport-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_aggreport-0.1.5-py2-none-any.whl | Python 2 | none | any | Details for pytest_aggreport-0.1.5-py2-none-any.whl |
Total release size: 13.2 kB
Release files / pytest-aggreport-0.1.5.tar.gz
| Download URL | pytest-aggreport-0.1.5.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8cfd58bd2502e7790d6d464a2cf3afb5dbfade9b6deadee1d07a29f6ed1f51c8
|
|
BLAKE2b-256 checksum How to use checksums |
affede525b7ff4eee615e02fa4b9949053b495ad96ffc70e53eb720dab745ebb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
|
Release files / pytest_aggreport-0.1.5-py2-none-any.whl
| Download URL | pytest_aggreport-0.1.5-py2-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
20bb12e80aaa371c47b79e28ae1351d891cbdd5755cec953695d51eccefe1d1a
|
|
BLAKE2b-256 checksum How to use checksums |
d5459f65664a4e5ed4308d4ea6c96457c0b22f43b74e4c45819717ca0e60b497
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
|
Security for pytest-aggreport 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.