{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/6"}],"enrichment":{"capability":"A pytest plugin that automatically captures log messages during test runs and displays them alongside captured stdout and stderr when tests fail.","skillfed_tags":["legacy","pytest-plugin"],"use_cases":["Debugging test failures by examining log output that was emitted during the test run.","Asserting on the content and severity of log messages within test code using caplog.records or caplog.text.","Customizing log message format and timestamps in pytest output for specific testing workflows.","Testing legacy code bases that require Python 2.6\u20133.5 and an older pytest version with explicit log capture.","Temporarily adjusting log levels within a test using caplog.at_level() context manager."],"what_it_does":"pytest-catchlog is a pytest plugin that intercepts log messages emitted during test execution and displays them in the test output when tests fail. It provides a caplog fixture that lets you set log levels, format log output, and access captured log records and text within your tests. The plugin was originally a fork of pytest-capturelog and supports both Python 2 and Python 3.\n\nThe package integrates logging capture into pytest's standard output capture mechanism, showing logs alongside stdout and stderr in failure reports. You can customize log formatting via command-line options or pytest configuration files, disable log reporting entirely, and programmatically inspect or filter captured records within test code. However, modern pytest versions have absorbed this functionality into the core caplog fixture, making this package largely redundant for current projects.","worth_installing":"No. The package is abandoned (last release 2016, last commit 2018) and modern pytest (since ~5.0) includes native logging capture via the caplog fixture, making this plugin unnecessary and potentially incompatible with current pytest versions. Install pytest's built-in caplog support instead."},"id":"pytest-catchlog","links":{"html":"https://skillfed.io/packages/pytest-catchlog","md":"https://skillfed.io/packages/pytest-catchlog.md","pypi":"https://pypi.org/project/pytest-catchlog/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2016-01-24","license_spdx":null,"license_treatment":"permissive","name":"pytest-catchlog","python_support":"unspecified","summary":"py.test plugin to catch log messages. This is a fork of pytest-capturelog."},"popularity":{"monthly_downloads":82215,"position":14176,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.2"}
