{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/16"}],"enrichment":{"capability":"Adds fixtures to pytest that print messages directly to test output, bypassing pytest's output capture, with optional formatting and elapsed-time tracking.","skillfed_tags":["pytest-plugin","test-output","debugging"],"use_cases":["Report sub-steps in long-running tests to show progress and prevent timeout confusion.","Print debug information when you cannot use a debugger, helping users confirm tests are not deadlocked.","Create hierarchical, indented output for nested test operations with custom icons and timing.","Add elapsed-time tracking to test output to identify performance bottlenecks.","Customize message formatting with different indentation, icons, and timer formats per test."],"what_it_does":"pytest-print is a pytest plugin that provides fixtures for printing messages directly to test output without being captured by pytest's output suppression. It solves the problem of communicating test progress or debug information when you cannot attach a debugger\u2014letting end users see that a test is still running rather than appearing frozen.\n\nThe package offers three main fixtures: a basic printer for simple messages, a pretty_printer with hierarchical formatting and elapsed-time display, and a factory for custom formatters. Messages appear in pytest's standard output even when tests pass, and the plugin can be controlled via CLI flags (`--print`, `--print-relative-time`) to show output at different verbosity levels.","worth_installing":"Yes. Low install friction, active maintenance, permissive license, no known vulnerabilities, and a single stable dependency (pytest). Useful for any test suite that needs visible progress reporting or debug output during long-running or hard-to-debug tests."},"id":"pytest-print","links":{"html":"https://skillfed.io/packages/pytest-print","md":"https://skillfed.io/packages/pytest-print.md","pypi":"https://pypi.org/project/pytest-print/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-21","license_spdx":null,"license_treatment":"permissive","name":"pytest-print","python_support":"supports_current","summary":"pytest-print adds the printer fixture you can use to print messages to the user (directly to the pytest runner, not stdout)"},"popularity":{"monthly_downloads":196546,"position":9782,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.3.0"}
