Note
Check out Running Ma'at locally before continuing.
The ./maat checkout command allows you to recreate the environment for a specific test.
This is particularly useful for debugging failing tests.
Consult ./maat checkout --help for command syntax and available options.
./maat checkout -w release --scarb 2.11.4 --foundry 0.43.0 OpenZeppelin/cairo-contractsWhen you run the checkout command:
- Ma'at identifies the test in the specified workspace.
- It runs all steps marked for checkout in a Docker container.
- The contents of the workbench are copied to a directory under
checkouts/. - The appropriate Scarb and Starknet Foundry versions are set in the checkout directory.
After running the checkout command, you will find the project files in
the checkouts/TEST_NAME directory. You can:
- explore the project structure,
- modify files to test changes,
- run Scarb commands directly in the checkout directory,
- debug issues that occurred during the experiment.
This provides a convenient way to interact with the exact environment that Ma'at uses for testing, making it easier to reproduce and fix issues.