If you want to test the project locally, install dfx
version 0.20.0 or later and use the following commands:
# Starts the replica, running in the background
dfx start --background
# Deploys your canisters to the replica and generates your candid interface
dfx deploy
To run the integration tests, first download PocketIC from GitHub and move the binary into /src/subnet_rental_canister. Then, build the subnet rental canister Wasm by running:
./scripts/build.sh
which will be placed in the root folder of the project.
Next, download the necessary NNS canister Wasms with:
./scripts/download_wasms.sh
A patched version of the CMC is already included in the project.
Finally, run the tests with:
cargo test --test integration_tests
See BUILD.md for instructions on how to build the canister Wasm reproducibly.