| name | test-contracts |
| description | Run Solidity smart contract tests using Foundry forge |
| disable-model-invocation | true |
| argument-hint | [test-name or file-path] |
Run the Solidity smart contract tests.
If arguments are provided, run a targeted test:
- If
$ARGUMENTS looks like a test name: forge test --match-test $ARGUMENTS -vvv
- If
$ARGUMENTS looks like a file path: forge test --match-path $ARGUMENTS -vvv
- If no arguments:
forge test -vvv
Test files in contracts/test/:
SmartVault.t.sol — Core unit tests (deposit, withdraw, LP, hedge)
SmartVault.delta.t.sol — Delta rebalancing tests
SmartVault.invariant.t.sol — Stateful invariant tests
SmartVault.race.t.sol — Reentrancy guard + payload freshness tests
RebalanceDispatch.t.sol — Dispatcher fan-out + Pause / SupplyIdle / module-swap guards
AaveGovernanceDrift.t.sol + .fork.t.sol — Reserve LT drift + force-close escape hatch
AaveT13b.t.sol + .fork.t.sol — T1.3-B (LP-burn-on-grow) flashloan flow
AaveDepegStress.fork.t.sol — USDC depeg stressed-LTV partial-unwind
SmartVault.aavefuzz.t.sol — LTV / governance-drift / depeg fuzz
If tests fail, analyze the output, identify the root cause, and suggest a fix.