The Tester’s Guide - 6 Bad Habits You Must Break
summary
Using Java 21 and JUnit 5, the talk examines six common testing anti-patterns that give a false sense of safety—examples include Coverage-Driven Development that tests nothing meaningful, overuse of mocks, and Thread.sleep() hacks that make tests slow and flaky. For each anti-pattern the presenter shows short code examples and concrete fixes to make tests faster, more reliable, and truly trustworthy.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 0:42Unreadable tests
- 1:46Code coverage obsession
- 3:10Overusing mocks
- 5:16Unclear collection assertions
- 7:03Random tests danger
- 9:10Static state management
- 11:18Conclusion
related talks
47mTest Driven Traps
51mChecking Unit Tests: Key Signs of Failing Approaches
48mChanging Tyres In A Moving Car-Making Functional Test Automation Effective
45mTesting the untestable PART II – patterns, use cases and practices
55mUnit Testing Like a Pro - Towards a Testable Design
52m10 simple rules for writing great testcases
02h 46mThe Joy of Testing
42mUse testing to Develop Better Software Faster
