Software Testing / Learning brief

Tom halves the file until one line breaks it

What this means in plain language

A random-input run crashes the Daily List import with a file of fifty task lines. Tom cuts it down by halves, watches for a new failure, and gives Leo a one-line file and a clear report.

Understand the full idea, step by step

A cook has a pot of soup with fifty ingredients and it tastes wrong. She pours half into a new pot and tastes it. Soon she knows which half holds the bad ingredient.

Tom has the same problem with a file. A random-input run has crashed the Daily List import, and the file holds fifty task lines.

Evidence & review

REVIEWED 2026-10-18

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Shrinking a failing input by hand and with a tool, and writing a minimal reproduction, as taught in this academy, with an invented app and invented files.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were read as search excerpts and no page was opened. Real failures often need more than one part of the input.

Sources for this brief — 7 sources
  1. Market practice

    Simplifying and Isolating Failure-Inducing Input (Zeller and Hildebrandt, Institute of Electrical and Electronics Engineers Transactions on Software Engineering, 2002) ↗ — Saarland University · The paper describes an algorithm that takes a failing input and removes parts by repeated testing until no single part can be removed without the failure going away; it splits the input, tests each part and the rest, and splits finer when nothing fails (search excerpts, page not opened)

    Describes delta debugging: an automatic method that cuts a failing input down to a smaller one that still fails. Their case study cut 896 lines of web page code to the one line that crashed a browser. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Transactions on Software Engineering volume 28 issue 2, pages 183 to 200. 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.

  2. Market practice

    How Hypothesis Works (Hypothesis project) ↗ — Hypothesis project · A page by the project's author saying a test library keeps a random input as a stream of bytes and simplifies that stream after a failure, so the built values become simpler too (search excerpt, page not opened)

    Explains that Hypothesis generates inputs and shrinks a failing input to a simpler one. Vendor documentation for one tool. Practitioner guidance, not a standard. · Checked 2026-10-18

    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.

  3. Market practice

    When multiple bugs attack (Hypothesis project) ↗ — Hypothesis project · An article saying that when a shrink step finds a different bug, the library keeps the simpler example for each bug apart (search excerpt, page not opened)

    Article on how a property-based test library keeps apart different bugs it meets while shrinking. Library author guidance for one tool. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. 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.

  4. Market practice

    Test-case reduction for C compiler bugs (Regehr and others, PLDI 2012 preprint) ↗ — University of Utah (author preprint) · A conference paper saying that reducing a failing C program by cutting text often leaves it too large or invalid, and that tools which know the language reduce it much further (search excerpt, page not opened)

    Conference paper arguing that plain delta debugging leaves C test cases too large or invalid and that reducers that know the language do much better. Compiler-specific, so general lessons are limited. The title was taken from the paper's well-known name and the search listed it as a preprint. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Programming Language Design and Implementation conference, 2012. 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.

  5. Market practice

    How to minimize a bug reproduction case (BugNet blog) ↗ — BugNet · A blog post on cutting a bug reproduction down to the smallest case (registry entry; page not opened)

    Per the search excerpt, start from the full reproduction, remove or simplify one element at a time, and stop when removing anything more makes the bug disappear. Practitioner guidance, not a standard. · Checked 2026-10-18

    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.

  6. Market practice

    Minimal bug reports (Dask project blog) ↗ — Dask project · A project blog post on writing minimal bug reports; the checklist of minimal, complete and verifiable was seen in search summaries of Stack Overflow's help article as mirrored on other sites (search excerpt, page not opened)

    Project blog post on writing minimal bug reports. Practitioner guidance. The minimal, complete and verifiable checklist was seen in search summaries of Stack Overflow's help article as mirrored on other sites. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. 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.

  7. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Learn this properly

START HERENarrowing down where a bug comes fromOnce you can repeat a bug, cut it down. Change one thing at a time until only the steps and data that matter are left. The short list points at the cause.Opens at L0 Explain simply · about 12 min

Related briefs