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.3.tar.gz
.
File metadata
- Download URL: pytest_capture_warnings-0.0.3.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 | 3355e19f8b02194afa8268f7bdd4dd43112f6366aedac07e36402769166dafba |
|
MD5 | 41a50c9cbd9bfbd1c95ee176a206b281 |
|
BLAKE2b-256 | fa16f399c085c28f5cdd6704c98e2300823698edd9668b4bc831c749fe53953a |
File details
Details for the file pytest_capture_warnings-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: pytest_capture_warnings-0.0.3-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 | a13e545d53c2b5c0ca3c0e805511b9db0cddc60afe98f8b0bd68cbaa1ee4f7b0 |
|
MD5 | a4455af5ccfba7712c31a3b10f390efe |
|
BLAKE2b-256 | ce5086c57fdf352c046108ba9aa44d8b59ccdd5a8f3408344d48375afdfe5f3b |