Menu

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

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

DEV Community·Ahmad Sharabati·about 1 month ago
#ZJpi0bLg
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. Open it in a browser, share it with a teammate, attach it to a ticket. 2.…

Continue reading — create a free account

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

Read More