Testing Contracts
Testing plays a crucial role in software development, especially for smart contracts. In this section, we'll guide you through the basics of creating test suites for your contracts.
There's two main test runners for Cairo:
Test Runner | Scope | Best For |
---|---|---|
Snforge | Starknet contracts | Full smart contract testing with blockchain state |
Cairo Test | Pure Cairo packages | Non-blockchain-state logic validation / testing |