What problem does it solve?
It prevents slow, fragile development cycles by ensuring changes to Anarchy are verified through tests that are designed first, then implemented until they pass.
Core Features & Use Cases
- Four-layer TDD structure: Rust pallet unit tests, Rust workspace integration tests, wasm-engine unit tests, and frontend unit tests via Jest/Testing Library.
- Correct test placement discipline: keeps mock-only logic from pretending to be real behavior, aligning with CLAUDE.md #6 by separating mock scope from actual implementation scope.
- Shell-based blockchain E2E integration: uses dev node + storage node combined scenarios in apps/blockchain/tests/integration/**/*.sh for cross-pallet and runtime-upgrade style acceptance.
- Actionable, color-coded workflow: RED (assert failure) → GREEN (implement extrinsic/logic) → REFACTOR (extract helpers) with clear assertions for storage and events.
- Practical examples of assertions: verifies errors via assert_noop!/error variants, and validates runtime events and storage mutations deterministically.
Quick Start
Use the tdd-workflow skill to design a failing unit test (RED) for the exact pallet/module behavior you’re changing, then implement until GREEN, and finally run the matching test suite for that layer.