

Dealing with randomly failing tests from a team perspective
source link: https://blog.arkency.com/2016/11/dealing-with-randomly-failing-tests-from-a-team-perspective/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Dealing with randomly failing tests from a team perspective
One of the things that can negatively impact a team morale is random builds - builds where sometimes some tests are failing. Inspired by Martin Fowler’s article on Quarantine, in some of our projects we came up with a guideline how we can fix the problem as a team.
- If a test fails randomly for more than 1 time, add to it to quarantine (consult the list of existing failures)
- never kick the build without doing some action (quarantine, test fix)
- if the build is red after your session of work, it’s your responsibility to fix it (feel free to ask for help if you have no time, but the initiative is yours). Whenever we say ‘you are responsible’, we mean that the whole team is responsible, but you’re the tracker, you take the initiative. It’s not your fault, but we need someone to track it and that seems to make most sense.
- don’t push into the repo if you have no time to handle the build problems
- never leave a red build after your session of work
- if a build fails for not clear reason, find the reason and fix it
- don’t push the code if the build is red
- if you start your working session and the build is red, talk to others and fix it first, then start your task
- if there’s really no other way to fix the build and no one to help, then at least kick the build
Recommend
-
97
Explore PostsOptions Menu
-
74
-
118
Not a dull moment passes by in the land of Google product issues. Not long after Google Assistant functionality was added to the Nexus Player, Google's dig... by Richard Gao in Bug Watch, Google, News, Nexus Player
-
53
A new bug in the Samsung Messages app is randomly sending photos to people and not leaving a trace of the activity.
-
14
Dealing with flaky tests in Jetpack Compose
-
13
Dealing with Timing Issues in Ionic E2E TestsCheck out my
-
15
How to retry failing dotnet tests in GitHub Actions Posted on September 24, 2021 ...
-
4
Abstract In this review, we outline the expected tests of gravity that will be achieved at cosmological scales in the upcoming decades. We focus mainly on constraints on phenomenologically parameterized deviations from general re...
-
5
Don’t miss what’s happeningPeople on Twitter are the first to know....
-
5
Dealing with Flaky Tests November 29, 2022 Jason Swett asked on Twitter if anyone has an app...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK