J B Rainsberger Integrated Tests Are A Scam HD
What it is
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.
Why Hacker News recommends it
HN recommends it in testing-strategy debates as the classic case for fewer integration tests and more small, well-contracted unit tests.
- 4 people recommended it
- 4 different months
- 0 strong recommendations
- first 2017, last 2023
What HN commenters said
“J.B Rainsberger says it best”
Rainsberger on why coarse-grained integrated tests hurt productivity.
pooktrain, 2017-03 · Recommendation · in “Zen and the Art of Unit Testing”
“Integration Tests Are A Scam”
Argues for mostly unit tests with clear contracts at boundaries.
1_player, 2017-10 · Recommendation · in “Write tests. Not too many. Mostly integration”
“which is a tad click-bait, but actually quite good”
Makes the case for fewer integration tests than unit tests.
mpweiher, 2018-07 · Recommendation · in “Goodbye Microservices: From 100s of problem children to 1 superstar”
“JBRainsberger has an nice talk on them [1].”
Talk on why integration tests slow teams and fail opaquely.
mihaigalos, 2022-09 · Recommendation · in “Fit: Framework for Integrated Test”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: integration tests, unit testing, contract tests, test design, jb rainsberger
Also recommended by the same people
commentaryRoss's Game Dungeon: Deus ExAccursed Farms · 4 HN recommenders · 2017–2024
documentaryThe Vanishing of Flight 370LEMMiNO · 2 HN recommenders · 2019–2023
explainerHow Does SHA-256 Work?learnmeabitcoin · 3 HN recommenders · 2020–2022
talkWriting a Wayland Compositor in Zig - Isaac FreundZig SHOWTIME · 4 HN recommenders · 2021–2021
talkRuby Midwest 2011 - Keynote: Architecture the Lost Years by Robert MartinConfreaks · 10 HN recommenders · 2013–2022
lectureEconomics of Nuclear ReactorIllinois EnergyProf · 4 HN recommenders · 2020–2025
lectureDonald B. Gillies Lecture: Dr. Michael StonebrakerSiebel School of Computing and Data Science · 2 HN recommenders · 2018–2024
talkAlan Kay at OOPSLA 1997 - The computer revolution hasnt happened yetJeff Gonis · 6 HN recommenders · 2013–2025