test

Test a smart contract

pop test contract [OPTIONS]

To test an existing smart contract:

pop test contract -p ./my_contract

E2E Testing

For ink! end-to-end testing, you will need to have a Substrate node with pallet contracts for the ink! e2e tests to run against. Pop CLI will download the substrate-contracts-node binary for this purpose:

pop test contract --e2e

Run e2e testing against a specific pallet-contracts node:

pop test contract  -p ./my_contract --e2e --node ./bin/my-contracts-node

For more details on E2E testing please see here.

Last updated