r/softwaretesting • • Oct 17 '22

My reply to "Is 237 bugs good?"

Years ago, the head of a consultancy emailed me a question:

I am trying to get a quick measurement and I am not sure the best way to do it. We recently implemented a new application system with 850 module/programs, written in cobol with a DB2 and IMS backend. We had over 20,000 development hours. I don’t know a number for lines of code, but it would be pretty big. This “new” system was cloned from an existing, 20 year old legacy application which serves 5 states in the Midwest. We added a 6th state. So, one might expect the defect rate to be lower since the existing code was mature. We touched every program and added lots of new logic for the new state.

Our system test lasting 6 weeks yielded 237 bugs. I am trying to compare to industry standards. Was this good? bad? average?

This was my reply:

My response is somewhat lengthy, but should completely answer your question.

Given only the information you provided, based on my experience, my “gun to the head” answer would be “For a system a) that was based on an existing legacy application, b) and consists of

850 modules/programs, all of which were touched, c) plus the addition of new logic, d) that was developed over 20k hours, and e) was tested over 6 weeks…237 bugs is ok.”

However, as you might imagine, I wouldn’t have much confidence in that statement.

Questions like “Was [237 bugs] good? bad? average?” are difficult to answer given only limited information. An “acceptable” defect count is truly dependent upon many, many factors. A few of the factors are (informally, and at a high-level):

  1. Customer Satisfaction – If the end user is happy, the perhaps 237 bugs is ok. Otherwise, probably not.

  2. Application Function – If the system is used for a non-critical purpose, then perhaps 237 bugs is ok. Otherwise, probably not.

  3. Bug Severity, Priority, Risk – Not all bugs are equal. If all 237 bugs are low severity, priority, and risk, then perhaps 237 bugs is ok. Otherwise, probably not.

  4. Project/Development schedule – If cost/deadlines required corners to be cut, then perhaps 237 bugs is ok. Otherwise, probably not.

  5. Development Staff – If they were novice, then perhaps 237 bugs is ok. Otherwise, probably not.

  6. Testing Staff – If they were novice, then perhaps 237 bugs is ok. Otherwise, probably not.

In Cem Kaner’s paper, “Software Engineering Metrics: What Do They Measure and How Do We Know?” (http://www.kaner.com/pdfs/metrics2004.pdf), he concludes that “There are too many simplistic metrics that don't capture the essence of whatever it is that they are supposed to measure.” I agree.

Of course, many simplistic metrics unfortunately still do exist. One such metric is “10-20 bugs per 1,000 Lines Of Code (LOC)”. Some believe this to be an actual “quality standard”, even though it is

meaningless without considering the factors mentioned above. Making any decisions based on simplistic metrics can be dangerous.

What are your thoughts?

38 Upvotes

Duplicates