DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Last call! Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Shifting Left: A Culture Change Plan for Early Bug Detection
  • Creating MVPs on a Budget: A Guide for Tech Startups
  • Project Hygiene, Part 2: Combatting Goodhart’s Law and Other “Project Smells”
  • Readability in the Test: Exploring the JUnitParams

Trending

  • Unlocking the Potential of Apache Iceberg: A Comprehensive Analysis
  • The Cypress Edge: Next-Level Testing Strategies for React Developers
  • Start Coding With Google Cloud Workstations
  • Automating Data Pipelines: Generating PySpark and SQL Jobs With LLMs in Cloudera
  1. DZone
  2. Software Design and Architecture
  3. Security
  4. Why Bug Injection Rates Matter

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.

By 
Matthew Heusser user avatar
Matthew Heusser
·
Feb. 10, 16 · Opinion
Likes (5)
Comment
Save
Tweet
Share
7.0K Views

Join the DZone community and get the full member experience.

Join For Free

defect mgmt writing 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.

Injection teams Testing

Published at DZone with permission of Matthew Heusser. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Shifting Left: A Culture Change Plan for Early Bug Detection
  • Creating MVPs on a Budget: A Guide for Tech Startups
  • Project Hygiene, Part 2: Combatting Goodhart’s Law and Other “Project Smells”
  • Readability in the Test: Exploring the JUnitParams

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: