Full Context, Stubbed Boundaries, Zero Flakiness
BitDive boots the full Spring context and replays all external boundaries from captured traces. Your entire internal chain is tested with real data. No infrastructure required.
Record Real Execution
BitDive captures the full execution trace: HTTP entry point, method calls, SQL queries, API responses, Kafka messages. This becomes the test scenario.
Full Chain Replay
The test boots the full Spring context. All external boundaries (DB responses, HTTP calls, Kafka) are replayed from the captured trace. The entire internal chain runs for real.
Execution Stability
UUIDs, Random numbers, and Clock values (Instant.now) are fixed to match the recording. Your integration tests are fully predictable across every CI run.
Zero-Boilerplate Setup
Minimal code, maximum verification surface
Inherit from `ReplayTestBase` and provide a scenario UUID. BitDive handles Spring context boot, boundary interception, and replay of all external dependencies.
- No @MockBean Lists: All external boundaries are auto-stubbed from the captured trace.
- Runtime Traces: Test scenarios use actual captured payloads, SQL results, and API responses from verified executions.
- Strict Verification: Automatically fail tests if unexpected external calls or SQL queries are detected.
Instant Bug Reproduction
From production failure to green test in minutes
When a scenario fails in production, capture its `scenarioId` and drop it into your integration test. Replay the exact failure path locally with your debugger attached.
- Exact Reproduction: Stop trying to "recreate" bugs. Replay the actual execution context.
- Fix Verification: Prove your fix works by replaying the failing scenario against your local code changes.
- Permanent Regression Check: Every incident becomes a permanent regression test automatically.
Bugs That Unit Tests Miss
The full Spring context reveals what isolated mocks hide
Unit tests mock the very infrastructure where expensive bugs live. Integration tests exercise the real Spring context, catching issues at the seams between components.
- @Transactional Bypass: Self-invocation within a bean skips the proxy. Integration tests catch it.
- Serialization Breaks: ObjectMapper, DTO renames, enum format changes. Real HTTP round-trip reveals them.
- Security & Validation: Missing @Validated, changed filter chains, broken Spring Security rules.
Need Real Database Verification?
Catch schema drift, constraint violations, and migration issues with a real PostgreSQL, MongoDB, or Redis via Testcontainers. External APIs still replayed from traces.
Explore Testcontainers Testing →Frequently Asked Questions
Common questions about the platform.
Ready for Integration Tests That Work on the First Run?
Full Spring context. Auto-stubbed boundaries from real traces. No mock scripts. No flakiness. Start testing the full chain today.