Crate ic_test

Source
Expand description

§ic-test

ic-test is a utility for building high-level integration tests for cross-chain projects on the Internet Computer (IC). It bridges IC and EVM environments by generating appropriate interfaces and managing runtime test orchestration.

This crate supports:

  • Automatic handling of IC canisters and EVM contracts.
  • Simplified test writing using high-level APIs.
  • Optional EVM support via feature flag "evm".

Structs§

CallBuilder
A builder for creating and executing canister method calls in tests.
DeployBuilder
Builder struct for configuring and performing a canister deployment.
Icp
A local Internet Computer environment based on PocketIc.
IcpTest
Helper structure combining test environments
IcpUser
A simulated Internet Computer user for use in tests.

Enums§

CallError
Errors that can occur during a canister method call.
CallMode
Call mode.
DeployError
Describes potential errors that can occur during the deployment process.
DeployMode
Represents the deployment strategy for a canister.

Traits§

Caller
Trait for objects that can initiate canister calls.
Deployer
A type capable of deploying canisters with arguments and lifecycle control.

Functions§

convert
Utility function to convert between types via Candid encoding/decoding.