Flow Playground

Testnet Testing Guidelines

It is critical to test your applications and contracts thoroughly on the testnet as part of your road to the mainnet. Testing will help you understand how to create stable and robust applications using the Flow development stack.

Testing Your Application

Automated Testing of Contract Code

All contracts should include test coverage for all contract functions. Make sure you've accounted for success and failure cases appropriately.

Tests should also be runnable in automated environments (CI). You can use the JavaScript testing framework to create tests for your smart contract code.

Stress Testing Live Applications Before Mainnet

Once you deployed your application to the testnet, you should record how your application handles non-trivial amounts of traffic to ensure there are no issues.

You should also get familiar with the Cadence anti-patterns to avoid avoid problematic or unintended behavior.