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

14 comments sorted by

13

u/I_Blame_Tom_Cruise Oct 17 '22

I think this is a pretty great answer, your points hit on whether those bugs impact the usability and customer satisfaction of the product, which is ultimately the end goal.

2

u/dsynadinos Oct 17 '22

Thank you!

4

u/SmellySquirrel Oct 18 '22

I would have said: I don't know and I don't care. It doesn't matter. I know you'll contradict me on that, but, no, it doesn't matter. Trust me.

But yours is more professional, so well done. Of all the shitty one-off metrics of software quality you shouldn't be using, found bug count isn't even in my top 100.

2

u/dsynadinos Oct 18 '22

Thank you!

7

u/SmellySquirrel Oct 18 '22

Would you rather have 237 bugs that are typos or 1 bug where none of your users can log in?

1

u/gennading Oct 17 '22

I didn't get your point 6 about Testing staff, what would you expect if they were experienced? Could you explain please

4

u/dsynadinos Oct 17 '22

Very, very (very!) generally speaking: more experience = more skills = better testing = more bugs found. So, more novice testers would find fewer (or just 237) bugs.

1

u/FourIV Oct 17 '22

Shoutout for referencing Kaner, he was my professor in college.

I find bugs as a metric in general to be pretty bad.

Sev 1-2 escapes to production? Good Number of total bugs? Bad

Also depends on Dev/Tester relationship and SDLC. Some testers work close to devs and dont write as many bugs because things are headed off earlier in the process.

Only reasonable metrics to come out of bugs is if you track over time so you can see historical differences imho.

1

u/kdeaton06 Oct 17 '22

Metrics for QA in general are pretty useless.

3

u/somethingmichael Oct 19 '22

I strongly dislike having to give an answer without context or any info so that was an excellent reply.

2

u/m0rdakay Oct 17 '22

Thank you for sharing your knowledge!

2

u/jhaand Oct 18 '22

That looks like a great reply.

What I don't understand is that nothing is said about the integration process of the whole system. If it's the first time putting it all together, than they could be thankful it runs at all. Nothing about automated testing and repeatability. Were there testers embedded in the development teams? If this was all tested on a single revision, then there might be more surprises in the end.

Do these defects count only for system verification or also the defects during development? Then it's not so much.

Based on the question, I get the idea this was a final system verification run, done by an outside company. If that's the case, then this product isn't finished for a long time. And I would consider this the first integration run.

2

u/[deleted] Oct 22 '22

The only definitive thing you can say is that 237 bugs is worse than 0 bugs. If you spent 20k hours developing the code, you can spent another 1k fixing your bugs...