From odra
Run unit and integration test on in-memory OdraVM or (and) real WASMs on CasperVM and report results. Use when the user says "test contract", "verify contract(s)", "unit test".
How this skill is triggered — by the user, by Claude, or both
Slash command
/odra:test-contractsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use `AskUserQuestion` tool to verify the use intent if not explicite expressed.
Use AskUserQuestion tool to verify the use intent if not explicite expressed.
If the tests be run on OdraVM, CasperVM or both.
Running test on OdraVM:
cargo odra test
Running tests on CasperVM with rebuild:
cargo odra test -b casper
Running tests on CasperVM without build:
cargo odra test -b casper -s
Before you run tests on CasperVM check if really need to rebuild contracts.
Use the following logic:
If the contracts source code has changed since the last change in wasm directory,
then test with rebuild.
If tests fail, help the user fix the issues. Explain any errors in context.
npx claudepluginhub odradev/odradev-plugins --plugin odra-pluginCovers smart contract testing strategies using Hardhat and Foundry, including unit tests, integration, gas optimization, fuzzing, and mainnet forking.
Guides writing and running Cairo smart-contract tests with snforge: unit, integration, fuzz, fork, and regression tests. Covers cheatcode usage, coverage, and test strategy.
Guides smart contract testing with Foundry: unit tests, fuzzing, fork testing, invariant testing. Use when writing tests for Solidity contracts.