Test Framework Integration
DB Tester integrates with three test frameworks through annotation-driven extensions.
Supported Frameworks
| Framework | Module | Extension | Language |
|---|---|---|---|
| JUnit | db-tester-junit | DatabaseTestExtension | Java |
| Spock | db-tester-spock | DatabaseTestExtension | Groovy |
| Kotest | db-tester-kotest | DatabaseTestExtension | Kotlin |
Each framework also provides a Spring Boot starter for automatic DataSource discovery.
Framework Pages
| Page | Description |
|---|---|
| JUnit | Extension registration, DataSource setup, nested tests, annotation precedence |
| Spock | DatabaseTestSupport trait, feature method naming, data-driven tests |
| Kotest | AnnotationSpec integration, DatabaseTestSupport interface, extension registration |
| Spring Boot | Auto-configuration starters for JUnit, Spock, and Kotest |
| Lifecycle | Lifecycle hooks, executor classes, and error handling |
Related Specifications
- Overview - Framework purpose and key concepts
- Annotations - Annotation details
- Configuration - Configuration options
- SPI - Service Provider Interface extension points
- Error Handling - Lifecycle error handling