Modern Testing Patterns
summary
Shows concrete ways to stop fake green tests by using mutation testing to reveal that 85% line coverage can hide a 20% mutation kill rate, using PIT and community plugins for other languages; runs real Postgres and LocalStack with TestContainers (including a commit-to-image trick to speed CI) and uses Liquibase migrations in tests to catch schema drift; replaces brittle mocks with WireMock stubs and generates those plus verifiable tests from contracts via Spring Cloud Contract for reliable integration checks.
AI-written summary · about
chapters (24)
- 0:00Introduction
- 1:55Development Horror Stories
- 3:20Why Test
- 5:01Test for Coverage
- 7:56Mutation Testing
- 11:30PiTest
- 12:13Testing Pyramid
- 14:12Improving Database Tests
- 21:32Test Containers
- 25:40Static Containers
- 26:32Other Use Cases
- 27:12Local Stack Container
- 28:12AWS Client
- 30:12Toxiproxy
- 32:47Commit
- 34:02Performance
- 35:27Docker Containers
- 36:12Wiremock
- 36:57Contract Testing
- 38:32Defining a Contract
- 39:17Spring Cloud Contract
- 41:27Benefits
- 42:37Maven
- 43:42Conclusion
related talks
41mMutation testing in practice
59m.NET Testing Techniques You Didn’t Know You Needed
02h 46mThe Joy of Testing
01h 05mMicrotesting
57mAdvanced Testing Techniques: Tips from the trenches
35mTest automation guide: How to move away from chain tests
38mMutants to the rescue: How effective are your unit tests?
37mUnderstanding the successes and the pain points of different testing strategies
