HackerTube.dev

J B Rainsberger Integrated Tests Are A Scam HD

Christopher Cabanne · 49.1K views · 2015-08-07 · 1:04:36

Open on YouTube ↗

If playback is restricted in your region, try opening the original video. Use Mark watched to add it to your marked videos.

Overview

J. B. Rainsberger argues that large integrated tests are a scam: they are slow, fail opaquely, and give a false sense of coverage. He advocates focused collaboration and contract tests at boundaries instead.

On Hacker News

HN recommends it in testing-strategy debates as the classic case for fewer integration tests and more small, well-contracted unit tests.

Recommended by 4 HN people across 4 months · HN mentions 2017–2023

Topics

Search by tags

What people said

mihaigalos · 2022-09 · Recommendation

I've tried FitNesse professionally. I think it comes short in many regards. To be clear, I think integrated/integration tests in their own only add value if you have a couple of them (meaning <5). Otherwise, they're red and no one knows why. And they take a whole lot of time to execute. JBRainsberger has an nice talk on them [1]. Pactflow have implemented a Contract/Collaboration framework called Pact [2]. I haven't used it professionally but I love the concept. [1] [VIDEO] [2] [LINK]

Read the original HN comment ↗
mpweiher · 2018-07 · Recommendation

Sure. I'd venture to say that integration tests should be fewer than unit tests, see hexagonal etc. Hopefully those external interfaces are also more stable, so they don't need to be run as often. I tend to use my integration tests also as characterization tests that verify the simulator/test-double I use for any external systems within my unit tests. See also: the testing pyramid[1] and "integrated tests are a scam"[2], which is a tad click-bait, but actually quite good. [1] [LINK] [2] [VIDEO]

Read the original HN comment ↗
1_player · 2017-10 · Recommendation

I have adopted the same philosophy. A few resources on this, part of the so-called London school TDD: - [LINK] (and the rest of the Wiki) - [LINK] - Most of the screencasts and articles at [LINK] (especially this brilliant talk [LINK] ) - Integration Tests Are A Scam: [VIDEO] All of these basically go the opposite way of the article's philosophy: Not too many integration tests, mostly unit tests. Clearly define a contract between the boundaries of the code, and stub/mock on the contract. You'll be left with mostly pure functions at the leaves, which you'll unit test.

Read the original HN comment ↗

Sources

Video by Christopher Cabanne, played through YouTube.

Data and selection notes

HN summaries and labels may contain AI errors. HN dates refer to discussions, not video publication.

HN Library: HackerTube export (2026-10-31) and open-index/hacker-news. Upstream summaries and classifications may contain AI errors.

Views, duration and playback status refresh separately from the published catalog. When an update fails, existing data remains visible.

Selection checks
  • SaaS & AI candidates: Topic keywords do not match
  • Editor-approved picks: Editorial review is required

Rule matches identify candidates. They do not guarantee video quality or financial results.

About the library and its sources