Skip to main content
Once you’ve fixed a bug, use Grat to ensure it never returns.

Exporting Test Cases

Use the grat export command to turn a failed mainnet transaction into a local unit test.

Integrating with CI

Add the exported test cases to your Rust test suite. Grat ensures the test environment perfectly matches the mainnet state where the bug first occurred.