Andres Almiray: Setting Up Data Driven Tests
summary
Bootstraps real databases in tests using Testcontainers and compares DB state with DbUnit and the modern wrapper Database Rider. Demo runs two test cases against an Oracle Free 23 container that starts in ~10–30 seconds and a faster slim image in ~12 seconds, seeds initial data from YAML, performs an insert, and shows automatic dataset diffs when expectations (one versus two rows) fail. Setup is repeatable per-test and CI friendly.
AI-written summary · about
chapters (11)
- 0:00Data-driven testing setup
- 1:09Database testing challenges
- 4:21Testcontainers introduction
- 8:13JUnit 5 and Java frameworks
- 11:24Oracle features and high-end DBs
- 15:58Oracle with Testcontainers config
- 16:19Micronaut and DB demo setup
- 23:23Database Rider for simpler tests
- 27:16Live demo and test execution
- 32:12Verification and improvements
- 35:23Q&A
related talks
50mSetting up Data Driven #Tests with #Java Tools
46mSetting Up Data Driven Tests with Java Tools
59mSetting Up Data Driven Tests with Java Tools
38mSetting up data driven tests with Java tools
21mTest Containers: Where Every Test Starts Fresh
47mIntegration Tests: testcontainers to the Rescue
48mContainers for Real Integration Tests
47mMySQL, Node & Testcontainers Testing Done Right
