Installation
MultiTest
ships as a Rust library named cw-multi-test (opens in a new tab).
To use MultiTest
for testing smart contracts, add it as a DEVELOPMENT DEPENDENCY to your
project:
[dev-dependencies]
cw-multi-test = "2"
MultiTest
is a TESTING library and should always be added to your project as
DEVELOPMENT DEPENDENCY in section [dev-dependencies]
of the Cargo.toml file.
Prerequisities
The only prerequisite to test smart contracts using MultiTest
is having Rust and Cargo (opens in a new tab)
installed.
We recommend installing Rust using the official rustup installer (opens in a new tab). This makes it easy to stay on the most recent Rust version.
Optionally, you may want to install Tarpaulin (opens in a new tab) for measuring code coverage and Nextest (opens in a new tab) for running tests faster, with clean and beautiful user interface.
Installing Tarpaulin:
cargo install cargo-tarpaulin
Installing Nextest:
cargo install cargo-nextest