Testing Strategies
TODO: Write content for this page.
Overview of testing approaches for ICP canisters. Cover unit testing (mocking ic-cdk), integration testing with PocketIC, performance benchmarking, and Docker-based test networks. Make a strong case for why testing matters on ICP: upgrades can be irreversible, cycles cost real money. Show the testing pyramid and recommend PocketIC as the primary approach.
- Portal: building-apps/advanced/benchmarking.mdx
- icp-cli: guides/containerized-networks.md
- JS SDK: pic-js (https://js.icp.build/pic-js)
- Examples: unit_testable_rust_canister (Rust)
- guides/testing/pocket-ic — primary testing tool
- guides/canister-management/logs — debugging with logs
- guides/canister-management/lifecycle — testing before upgrades