{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/2"}],"enrichment":{"capability":"Writes pytest test results to a JSON Lines file in real-time, replacing the deprecated --resultlog option with a simpler, extensible format.","skillfed_tags":["pytest-plugin","json-output","test-reporting"],"use_cases":["Export test results to a structured format for CI/CD pipelines to parse and aggregate across multiple test runs.","Stream test events in real-time to a monitoring system or dashboard during long test sessions.","Attach custom properties (price, environment, build ID) to individual tests for post-analysis and reporting.","Archive test execution history in compressed JSON Lines format for audit trails or compliance.","Integrate pytest results with external tools that consume JSON events without needing custom pytest plugins."],"what_it_does":"pytest-reportlog is a pytest plugin that captures test execution events and writes them as JSON Lines to a file, one self-contained JSON object per line. It was created as a modern replacement for pytest's deprecated --resultlog option, focusing on simplicity and extensibility. Each line contains a report object with a $report_type identifier (e.g., SessionStart, TestReport, SessionFinish) plus event-specific fields like outcome, duration, and failure details. The file is flushed after each write, enabling real-time consumption by external systems.\n\nThe plugin supports automatic compression via common suffixes (.gz, .bz2, .xz) and includes a record_property fixture for attaching custom metadata to individual tests. It runs as a pytest plugin with no special configuration beyond installing the package and passing --report-log=FILE to pytest. The output format is designed for forward compatibility: consumers should ignore unrecognized report types and unknown keys, as future pytest versions may extend the objects.","worth_installing":"Yes. This is a stable, actively maintained plugin with low install friction, no security issues, and a clear use case: anyone migrating from --resultlog or needing structured, real-time test event logging should use it. The MIT license and minimal dependencies make it safe for any project."},"id":"pytest-reportlog","links":{"html":"https://skillfed.io/packages/pytest-reportlog","md":"https://skillfed.io/packages/pytest-reportlog.md","pypi":"https://pypi.org/project/pytest-reportlog/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-11-11","license_spdx":"MIT","license_treatment":"permissive","name":"pytest-reportlog","python_support":"supports_current","summary":"Replacement for the --resultlog option, focused in simplicity and extensibility"},"popularity":{"monthly_downloads":801875,"position":5021,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.0"}
