Why Bug Injection Rates Matter
A new source of waste in code to examine: the bug injection rate, and what testing teams can do about it.
Join the DZone community and get the full member experience.
Join For Freewriting wider charters, instead of detailed scripts, might initially help your testers find more problems. once you’ve started down that road, though, we reach something called diminishing returns, where the company is trying to sweat out another percentage point or two of effort. that works for the folks in operations management at the airlines, trying to figure out how to add another route a day without adding a new plane to the fleet (or another row of seats in the plane), but most of us are better served to find something else to cut.
today i’d like you to consider a new source of waste: the bug injection rate.
consider two teams
both have identical test strategies, for a competing and nearly-identical product. the programmers on team a inject a new defect which needs fixing for about 75% of all changes while for team b the number is more like 3%.
which test team is “better”?
well, for a 100 change sprint, team a would have to go through eleven cycles of regression testing to get the number of defects to four. team b finds three defects on the initial run. if our minimum escape number is four, team b doesn’t really need to do regression testing at all.
those numbers and the story behind them are just a picture of what is possible … but it is possible. in the past few years i have seen teams without a regression test process at all, along with teams that desperately needed to spend a half-dozen cycles, testing and retesting, because they could not believe the software would work on the first build, or the second, or the third. most of this software was complex, legacy applications, where the test team had strong reason to not believe. after all, it had never worked before.
it was my friend, tom wissink , director of integration, test and evaluation at lockheed martin, that first mentioned a term of this dysfunction: the find-fix-retest loop. that loop is expensive, but it is the repeated runs through the loops that really hurt. not only are they expensive, but that expense means it makes economic sense to batch up work, releasing less often. that means that each release has more changes before testing, which means more defects, which leads to more test cycles, with more time spent documenting, reproducing, assigning and tracking defects. personally, i think it would be more honest to call it the “test / explore to see how big the problem is / reproduce / document / argue about if it is a bug / argue if it should be fixed / help the developer reproduce it / fix / retest / document some more” cycle, which is as expensive as it sounds.
too much bug injection combined with long releases leads to death marches and burnout. in one case, i saw a team essentially dissolve at the end of a project. the people that were left did not deliver any meaningful, working software for the next twelve months.
many people would argue this is not a testing problem, and they might have a point. it is, however, a real problem, one that destroys the value of the test team.
what’s a test team to do?
the first common response of teams is to tighten the cycle, using a technique like exploratory testing . today i’ll suggest a second approach, to reduce the number of cycles, by improving first time quality and
for a tester to worry do, they have to take a step back from defects in the immediate build, to think about the overall development process. because they tend to have more broad responsibilities yet remain hands-on, testers can actually be uniquely positioned to do this. for example, a tester can spend a lunch hour in the bug tracker, viewing the last hundred bugs. asking if each problem could have been (or should have been) identified and fixed earlier. if the answer is yes, the tester can look for the root problem. once the hour is over, the tester can look at which kinds of bugs are most common and easiest to prevent. yes, some bugs will slip through, but you might find a surprisingly high percentage of bugs that come from a misunderstanding of what should be built, from unintended side-effects in systems, or from skipping simple component and unit tests.
once you have an idea of how many bugs are avoidable, count the cost. consider the potential savings for the organization if regression test cycles were cut in half or eliminated, moving to something more like continuous delivery . if the numbers are compelling, you now have an answer to that painful question “why does testing cost so much?” along with an answer; the delivery team needs to improve first-time quality.
so look at the bug injection rate and first-time quality. let us know what you find, and let’s keep talking.
we’ve got a lot of ground to cover.
Published at DZone with permission of Matthew Heusser. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments