detest - Run bounded In-Process DST for Go applications
Runs real Go application code inside go test while simulating shared resources, exploring bounded interleavings and failures with deterministic replay.
Tags
Updated: 2026-12-02Capabilities
What this skill does
- Select target flows
- Verify Go compatibility
- Inspect database wiring
- Validate schema fidelity
- Check SQL support
- Add the detest dependency
- Write simulation tests
- Run bounded explorations
- Triage invariant violations
- Report guarantees and findings
Inputs
- Go application project
- Target operation or flow
- Business invariants
- Database server and isolation level
- Database schema or migrations
- SQL statements used by flows
- Database driver error types
- Database collation and ctype
- User approval for dependency changes
- Run conditions and bounds
Outputs
- Simulation test files
- Updated Go dependency state
- Test run results
- Invariant violation findings
- Replayable schedules
- Run guarantee report
Requirements
- Go 1.26 or later
- A PostgreSQL or MySQL database flow
- Database access through database/sql
- A supported database isolation level
- SQL statements supported by detest
- User decision to use detest
- Permission to modify and run the project
