question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mark the setup as flaky

See original GitHub issue

I am running complex selenium tests, in which the setup is flaky sometimes, i.e. when I get the webdriver itself.

I tried to mark the respective setup function as flaky, but if an error happens in the setup method (in conftest.py in the py.test framework), the test is not being repeated.

Is there a way to mark the setup for a test as ‘flaky’?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
adamtheturtlecommented, Jul 10, 2020

Can this now be closed thanks to https://github.com/box/flaky/pull/148?

0reactions
Jeff-Meadowscommented, Jul 10, 2020

Fixed in #148

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plugin for nose or pytest that automatically reruns flaky tests.
About. Flaky is a plugin for nose or pytest that automatically reruns flaky tests. Ideally, tests reliably pass or fail, but sometimes test...
Read more >
Manage flaky tests - Azure Pipelines
You can mark or unmark a test as flaky based on analysis or context, by choosing Flaky (or UnFlaky, depending on whether the...
Read more >
How to Fix Flaky Tests
Flaky tests hinder development, slow down progress, hide design problems, and can cost a lot of money in the long run.
Read more >
Flaky Test Management
A test is considered to be flaky when it can pass and fail across multiple retry attempts without any code changes. For example,...
Read more >
Flaky tests - GitLab Docs
What's a flaky test? It's a test that sometimes fails, but if you retry it enough times, it passes, eventually. What are the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found