Pytest plugin — not just prettier reports, but a full report companion

Hi everyone 👋

I’ve been building a plugin to make Pytest reports more insightful and easier to consume — especially for teams working with parallel tests, CI pipelines, and flaky test cases.

🔍 What My Project Does

I’ve built a Pytest plugin that:

Automatically Merges multiple JSON reports (great for parallel test runs) 🔁 Detects flaky tests (based on reruns) 🌐 Adds traceability links Powerful filters more than just pass/fail/skip however you want. đŸ§Ÿ Auto-generates clean, customizable HTML reports 📊 Summarizes stdout/stderr/logs clearly per test 🧠 Actionable test paths to quickly copy and run your tests in local. Option to send email via sendgrid

It’s built to be plug-and-play with and without existing Pytest setups and integrates less than 2min in the CI without any config from your end.

Target Audience

This plugin is aimed at:

Backend / QA engineers who want clearer test visibility. Teams running tests in CI environments with reruns / retries. Projects that need clean test artifacts for debugging or audits. Anyone using parallel test execution (e.g. pytest-xdist) and wants to merge JSON output meaningfully.

Comparison with Alternatives

Most existing tools either:

Only generate HTML reports from a single run (like pytest-html). Don’t support merging reports across parallel runs out of the box. Lack flaky detection, external traceability links, or log visibility. Lacks filters beyond fail/pass

This plugin aims to fill those gaps by acting as a companion layer on top of the JSON report, focusing on:

🔄 Merge + flakiness intelligence 🔗 Traceability via metadata đŸ§Œ HTML that’s both readable and minimal

Why Python?

This plugin is written in Python and designed for Python developers using Pytest. It integrates using familiar Pytest hooks and conventions (markers, fixtures, etc.) and requires no major code changes in the test suite.

Installation

pip install pytest-reporter-plus

Links

GitHub: https://github.com/reach2jeyan/pytest-reporter-plus ⭐ PyPI: https://pypi.org/project/pytest-reporter-plus

Motivation

I’m building and maintaining this in my free time, and would really appreciate:

⭐ Stars if you find it useful 🐞 Bug reports, feedback, or PRs if you try it out

submitted by /u/reach2jeyan to r/Python
[link] [comments]


Commentaires

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *