.agents/skills/rust-testing/SKILL.md
Patterns for Rust testing in Axone CosmWasm contracts. Use when adding unit tests, integration tests, data-driven cases, or coverage-oriented test scenarios.
npx skillsauth add axone-protocol/contracts rust-testingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Component | Target | | -------------------- | ------ | | Handlers | 100% | | State operations | 100% | | Error paths | 90%+ | | Message parsing | 80%+ | | Overall | 90%+ |
# Run all unit tests
cargo make test-unit
# Run all tests (includes integration)
cargo make test
# Run tests with coverage
cargo make test-coverage
# Run specific test
cargo test test_name -- --nocapture
Coverage output is written to lcov.info.
# Generate HTML report (requires lcov)
genhtml lcov.info --output-directory coverage/
# Or use cargo-llvm-cov directly
cargo llvm-cov --html --open
test_ prefix.development
Repository quality gates for Rust and generated artifacts. Use when validating changes locally or before committing Rust, schema, or documentation updates.
development
Domain-driven modeling patterns for Axone contracts. Use when introducing domain concepts, encoding invariants, or deciding boundaries between domain, handlers, services, gateways, queries, and state.
development
Guide for regenerating Axone contract schemas and rendered Markdown docs. Use when contract APIs or metadata change, when checking generated-doc drift, or when preparing documentation commits.
development
Axone deployment workflows with cargo-make, cw-orch, and Abstract. Use when publishing modules, installing them on accounts, running local chain tasks, or inspecting deployments.