Chapter 4 of 7
Bugs come in groups
Where you find one problem, there are usually more nearby.
Some features sound simple in the meeting. “A calendar where people can post things and invite each other.” Everyone can picture it. It sounds like a few weeks of work.
Then the work starts, and the questions arrive. Who is allowed to see what? What if the same post is meant for different groups of people? What happens to an invitation when the meeting changes?
The calendar for the board
I was once part of a team building a calendar feature for a customer portal used by housing associations. My role was testing. Board members could create posts and invite either the board or everyone living in the association. People got notifications and emails about new invitations, and could accept them. A genuinely useful feature for the people who run a housing association.
But it wasn’t really one feature. It was a calendar wired into many other things: invitations, the portal’s existing notifications, roles, and posts with text, images and video that had to look right on every device. Each part is simple on its own. The trouble starts where they touch.
We knew the risk before we started. A calendar sounds simple, and it isn’t, and we said so. The decision was to go ahead.
As we tested, the problems kept coming. Most of them appeared when something changed after it had been created:
- If an invitation was changed, the link in the email no longer led to it. People were told it had been deleted.
- When a post was edited, the notification about it wasn’t updated.
- A deleted post still showed up in notifications.
- If a meeting was changed after someone accepted, they still stood as accepted, for a meeting that was no longer the same.
Roles added another layer. Many board members also live in the association. The feature knew this, but didn’t handle it in every case. And posts with text and images looked different from one device to the next.
We saw the pattern early: wherever something could be changed after it was created, something broke. Looking back, the cause was simple. The requirements described in detail how to create posts and invitations. What should happen when they were changed or deleted was described too, but not in enough detail. On top of that, the requirements changed as we built, which added to the problem. Almost every bug led back to the same place: a requirement that was never fully specified, or one that had moved.
The feature went live, and the fixes kept coming. With problems like these, few housing associations took it up.
That’s the thing about a cluster: the bugs share a cause. Find the cause, and you know where to look for the ones you haven’t found yet.
Why bugs gather
Testers call this defect clustering. Most of the problems in a system tend to sit in a few areas. The often-quoted version is that 80% of the bugs live in 20% of the system. The exact numbers vary, but the pattern shows up almost everywhere.
Bugs aren’t spread evenly because their causes aren’t. They gather where things get complicated: many rules, many roles, many combinations. They gather where the requirements were vague or silent. And they gather in parts that change often, or that several people or teams touch without anyone owning the whole.
So a bug is rarely just a bug. It’s a sign that its cause is nearby, and the cause is probably producing more. That’s why a tester who finds one problem keeps looking in the same place.
What a cluster tells you
For anyone planning or deciding on the work, a cluster is useful information, not just bad news. It tells you something about the area, not only about the individual bugs.
If one feature keeps needing fix after fix, another fix may not be the answer. It may be time to step back and ask what makes that area so hard. Often it’s one of the same few things: many parts that depend on each other, rules added on top of other rules, or more kinds of users than anyone planned for.
A good place to start is the requirement itself. Look for where it’s thinnest. Requirements tend to describe the normal path in detail, and say much less about everything else: changes, errors, exceptions, unusual users. That’s where clusters tend to form, and where testing should look first.
It also helps with estimates. When a feature sounds simple but is made of several parts that depend on each other, it probably isn’t simple. The work, and the testing, sits where the parts meet, not in each part on its own.
And when a tester says “this area again”, it’s worth listening. They’re not complaining. They’re telling you where the next problem is most likely to be.
Five questions that work on anything
-
1. What problem are we solving, and for whom?
If the answer is fuzzy, everything after it will be too.
-
2. How will we know it works?
Agree what “right” looks like before anyone builds it.
-
3. (in focus) What could go wrong?
Errors, limits, odd inputs and unusual users, not just the normal case.
-
4. What are we assuming?
What everyone takes for granted is exactly what nobody checks.
-
5. Does it fit with what’s already there?
The system, the business rules, earlier decisions, the law.
Here, question 3 does the most work: what could go wrong when a post or invitation is changed or deleted after people have already seen it? Asked early, it points straight at where the requirement was thinnest. It covers the roles too: board members who also live in the association are exactly the unusual users the question asks about.