Menu

Stop flying blind on flaky tests — pytest-cloudreport gives you HTML reports and cross-run history
📰

Stop flying blind on flaky tests — pytest-cloudreport gives you HTML reports and cross-run history

DEV Community·Ahmad Sharabati·6 months ago
#ZJpi0bLg
#python#pytest#testing#devops#cloudreport
Reading 0:00
15s threshold

If you've ever stared at a CI failure that passes locally, or watched the same test flap for the third time this week with no idea how often it's actually broken — this post is for you.

The problem

pytest's built-in output is great for a single run. But it tells you nothing across runs:

Which tests are consistently slow?

Is this failure new or has it been flapping for two weeks?

Did the last deploy make things better or worse?

You end up either ignoring flakiness until it becomes critical, or building custom tooling you don't have time to maintain.

What pytest-cloudreport does

It's a pytest plugin with two modes:

1. Local HTML report — zero config, zero account needed.

pip install pytest-cloudreport pytest --cloudreport-local

Enter fullscreen mode

Exit fullscreen mode

After your test run you get a self-contained cloudreport.html with a full breakdown: pass/fail/skip counts, duration per test, error output, environment info.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.