pytest plugin to capture all warnings and put them in one file of your choice
Project description
pytest capture Warnings
This is a pytest plugin to collect and print a summary of all the warnings encountered during test execution and save them in a file.
Installation
pip install pytest-capture-warnings
Usage
pytest --output <output_file> <file_to_test>
or
CAPTURE_WARNINGS_OUTPUT=<output_file> pytest <files_to_test>
Flake8 Format
The output file is formatted on a flake8 format
<filename/path>:<line number>:<character number>:<warning message>
Project details
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
File details
Details for the file pytest_capture_warnings-0.0.2.tar.gz
.
File metadata
- Download URL: pytest_capture_warnings-0.0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2427bc15e8648d3f106a6f9e676bef5627335d4e33d7a04f2b3dc2cd33b1f47d |
|
MD5 | 43e6773945ce76bd3b7f28cfe00c2530 |
|
BLAKE2b-256 | ebbc279b7a8095ac8a17225f2ad81ccf5784c6c421f703c78d90706e983e3792 |
File details
Details for the file pytest_capture_warnings-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: pytest_capture_warnings-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ba43d7cda6d0047b5b967ba4af437524a2fed0074e50eec48221f56fb5dd29a |
|
MD5 | 11f3b6a80e4d3f03f5edb460739599ae |
|
BLAKE2b-256 | e4af41e7ed37e1449ed1d5b88258c475fde317b5283cea79d46d55859c5a7760 |