Docs
Submit an issue
Smart Contracts
Smart Contracts
  • WELCOME
    • Smart Contracts
    • Installing Pop CLI
    • How to contribute
  • GUIDES
    • Get tokens on Pop (Testnet)
    • Set up your development environment
    • Create a new contract
    • Build your contract
    • Run your unit tests
    • Deploy your contract locally
      • Deploy locally on a Solochain
      • Deploy locally on Pop
    • Call your contract
    • Running E2E tests
    • Deploy on Pop
    • Securely Sign Transactions from CLI
    • Getting Started with ink! v6
  • TUTORIALS
    • Your first ink! smart contract
    • Mint a PSP22 token on Pop
  • POP CLI
    • welcome
    • install
    • new
    • build
    • call
    • up
    • test
    • clean
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. POP CLI

test

Test a smart contract

PreviousupNextclean

Last updated 10 months ago

Was this helpful?

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 for the ink! e2e tests to run against. Pop CLI will download the 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 .

pallet contracts
substrate-contracts-node
here