detest - Explore bounded concurrent interleavings in Go
Runs Go application code inside go test while simulating databases, queues, external calls, and mutexes to explore bounded interleavings and check invariants.
Tags
Updated: 2026-11-30Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Inspect Go project compatibility
- Select target operations
- Define scenarios and invariants
- Add the detest dependency
- Write simulation tests
- Run bounded interleaving explorations
- Replay failing schedules
- Report guarantees and findings
Inputs
- Go application source
- Go module and version
- Database schema and migrations
- Database server and isolation level
- Database collation and ctype
- Candidate SQL statements
- Driver error types
- Target operation
- Test scenario and invariant
- User approval
Outputs
- Simulation test file
- Dependency configuration change
- Test run results
- Replayable failing schedule
- Invariant violation report
- Guarantee and findings report
Requirements
- Go 1.26 or later
- PostgreSQL or MySQL database
- database/sql-compatible database access
- Supported database isolation level
- Detest-compatible SQL statements
- Production-compatible schema constraints
- Permission to modify project dependencies
- User decision to use In-Process DST
