Technical debt and testing
Old shortcuts in code and tests slow every release. Learn to see the interest, argue for clean-up time, and retest after a clean-up.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a credit-card balance. You buy something with the card now and pay later. If you pay at once, it costs little. If you pay only the minimum, interest grows. Soon the interest eats a large part of your monthly money.
Daily List is a to-do list app. Last year Leo, the developer, took a shortcut so that reminders could ship on time. It worked. Now every change near reminders is slow, and Tom, the tester, needs more time to check them.
That shortcut is . The extra time Tom and Leo spend each sprint is the interest. Nina, the product owner, only sees slow progress. Mei, the test lead, shows her where the time goes.
The picture has a limit. A bank sends a bill. Code sends no bill, so someone must make the cost visible. Also, some debt is a fair choice, like a loan for a house.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Seeing the cost of old shortcuts and asking for a small, steady clean-up.
- Name the shortcut
- See the interest
- Ask for a slice
- Check before and after
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The card balance | The technical debt |
| The interest on the balance | The extra effort paid on each change |
| Paying more than the minimum | A clean-up slice in each sprint |
| Checking the statement before and after | Running the same checks before and after refactoring |
WHERE THIS PICTURE STOPS
- A bank sends a bill. Code sends none, so someone must make the cost visible.
- Some debt is a fair choice, like a house loan. Not every shortcut is a fault.
- The picture says nothing about how to count the cost. Teams use rough signs.
HOOK
Pay more than the minimum
REMEMBER IT THIS WAY
A story beat: one picture-line that carries the order or the cause.
Remember the day Leo took a shortcut so reminders could ship on time. It worked, and every change near reminders has been slow since.
| In the trick | What it stands for |
|---|---|
| The shortcut | technical debt |
| Every change is slow | The extra time Tom and Leo spend each sprint |
Some debt is a fair choice, like a loan for a house, so a shortcut is not always a mistake.
TELL A FRIEND
Debt is a card balance. The interest comes back each time the area changes, and a small steady payment is the fix.
OFTEN MIXED UP WITH Maintainability and testability. The maintainability lesson names debt in two sentences. This lesson shows how a tester sees it, asks for clean-up and retests.
PRACTISE AND KEEP
Sources for this topic — 5 sources
- Market practice
Measuring and identifying code-level technical debt: a practical guide (SonarSource) ↗ — SonarSource · A practical guide to measuring and identifying code-level technical debt (registry entry from an earlier batch; not re-opened here)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Metaphors and the term technical debt (techdebtpolicy.com) ↗ — techdebtpolicy.com · The debt metaphor comes from a 1992 experience report on the WyCash system by Ward Cunningham (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Technical Debt Quadrants (Scalac blog, a write-up of Martin Fowler's quadrant) ↗ — Scalac · Fowler's quadrant sorts debt as deliberate or inadvertent and as prudent or reckless (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Technical debt vs test debt (CloudQA) ↗ — CloudQA · Brittle tests and manual regression work make test debt, and test debt makes developers wary of refactoring (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Heuristics of software testability, version 2.2 (James Bach, Satisfice; copy on Scribd) ↗ — Satisfice, Inc. (copy hosted on Scribd) · Testability is described in five dimensions: project, value, subjective, intrinsic and epistemic (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Version 2.2, 2013. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.