Skip to content

Testing Rust Canisters

TODO: Write content for this page.

Test Rust canisters with unit tests and integration tests. Cover mocking ic-cdk calls for unit testing, the PocketIC Rust library for integration tests, test patterns (deploy, call, assert), testing upgrades, and CI setup. Show a complete test example for a simple canister.

  • guides/testing/strategies — general testing strategy
  • guides/testing/pocket-ic — PocketIC details
  • languages/rust/index — Rust CDK overview