run_tests
Runs Foundry tests and returns compact failure summaries with decoded reasons, fuzz counterexamples, invariant sequences, logs, and clear errors when tests did not run.
Instructions
Run forge test and return a compact summary: counts, and for each failing test its kind (unit, fuzz, invariant, setup), decoded reason, fuzz counterexample or invariant call sequence, and console logs. isError means the tests did not run (compile error, no matching tests, timeout, missing forge, …); never report that as passing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| traces | No | Attach a decoded trace excerpt to the first 5 failures (a second, text-mode forge run). Default true. | |
| fuzz_runs | No | Override fuzz runs. A value below the project setting is reported as reduced; do not use it to make tests pass. | |
| max_bytes | No | Response size budget in bytes (default 8192). | |
| match_path | No | Only run test files matching this glob. | |
| match_test | No | Only run test functions matching this regex. | |
| match_contract | No | Only run test contracts matching this regex. |