
Nearly 100 episodes after "Why Testing Sucks," Jeff and Luca revisit testing strategy with fresh perspectives.
The conversation centers on Guillermo Rauch's advice: "Write tests, not too many, mostly integration." We explore what this means, whether the traditional testing pyramid holds up, and what counts as "unit" versus "integration" tests—terms used loosely in practice.
Jeff and Luca discuss when to write and remove tests, and structuring them to tell clear stories. We cover Test-Driven Development and when it helps versus hinders during prototyping.
A major theme is how LLMs are changing testing. They ease refactoring and creating infrastructure like embedded simulators, but generate bloated suites full of mocks that may not give needed confidence. We emphasize keeping LLMs on a tight leash.
The episode covers requirements management, traceability, and how tooling encourages early test creation. The focus is practical heuristics: What are you worried about? What gives confidence? What story do your tests tell?
Key Topics
- [00:00] Revisiting "testing sucks" 93 episodes later with focus on higher-level strategy
- [01:48] "Write tests, not too many, mostly integration" and the testing pyramid
- [06:17] Defining unit versus integration tests and loose term usage
- [09:39] Structuring tests with given-when-then and arrange-act-assert
- [13:12] Building complex systems from simple, well-tested units
- [14:29] How LLMs affect refactoring-brittleness tradeoff and test maintenance
- [16:29] Removing tests during and after development, treating them like scaffolding
- [21:57] When to write unit, integration, and end-to-end tests in development
- [29:24] Linking requirements to test cases with tooling for early creation
- [32:04] Writing tests that tell a story and protect what matters
- [33:56] Using LLMs to generate embedded simulators and reduce activation energy
- [36:46] Maintenance burden of LLM-generated tests and keeping AI on a tight leash
- [40:17] Final thoughts on testing philosophy and connecting with hosts online
Notable Quotes
"The best testing heuristic you can use is, what am I actually worried about? Like, what do I need to guard against?" — Luca Ingianni
"Any complex working system was evolved from a simple working system. You need to start with Blinky of the LED and then add... you build it up from those simple beginnings." — Jeff Gable
"Not writing tests because you have considered them and you've considered them a waste of time is very distinct from not writing tests because you're in a hurry. That is a very dangerous trap to fall into." — Luca Ingianni
Resources Mentioned
- Episode 11: Why Testing Sucks - Original episode where Jeff and Luca first discussed testing philosophy
- Episode 76 with Steve Branham on BDD - Discussion on BDD and test structure with given-when-then patterns
- Guillermo Rauch's Testing Quote - "Write tests, not too many, mostly integration" - quote sparking this episode
- Base Ref - Jeff's requirements and test management tool for medical devices
- Luca Ingianni's Website - Luca's training website and podcast
- Agile Embedded Podcast Slack - Community channel to reach hosts and connect with listeners
Jeff runs BaseRef, a Requirements Management and Documentation tool for medical device startups, at https://getbaseref.com.
You can find Luca at https://luca.engineer.
Want to join the Pragmatic Embedded Slack? Click here
Are you looking for embedded-focused trainings? Head to https://agileembedded.academy/
Ryan Torvik and Luca have started the Embedded AI podcast, check it out at https://embeddedaipodcast.com/
Flere episoder fra "The Pragmatic Embedded Podcast"



Gå ikke glip af nogen episoder af “The Pragmatic Embedded Podcast” - abonnér på podcasten med gratisapp GetPodcast.








