Skip to main content

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

pytest_capture_warnings-0.0.4.tar.gz (3.9 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page