1/5
## Kinds of Tests We're back in the GitHub repo associated with this course in section with Moccasin Buy Me A Coffee. We have several, several, different types of tests. The test that we've gone over so far are something called unit tests. And these basically test a single function or part of your code. The next step up from that is usually integration tests. And this is testing different systems together or different contracts together or basically the definition can be a little bit loose depending on how you define it. Then, the step up from that would be a staging test. And these are testing your code in a production-like environment. Now, one of the tests kind of unique to blockchain is going to be this type of forked test. Although, you could probably categorize these as staging tests as well. And this is essentially where you deploy your contracts to a fake virtual network or a forked network and call the different functions on it. We've kind of done something like this with tenderly's virtual network, but we're also going to do it with alchemy here as well. And these fake networks will simulate what it's like to actually work with the real blockchain. Then, there's fuzz and formal verification. Now, fuzzing is incredibly important, and you should 100% learn how to fuzz. And then, formal verification is when you mathematically prove different functions. So, for us, we are going to do all of these types of tests for this project. And then, pretty soon once you get to the stablecoin portion, we are going to add fuzz testing as well.
A comprehensive guide to the kinds of tests used in Vyper development - This video explores different types of tests used in Vyper smart contract development, such as unit tests, integration tests, staging tests, forked tests, fuzz tests, and formal verification.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Course Overview
About the course
Python basics
Introduction to Web3.py
Introduction to Titanoboa
Introduction to Moccasin
How to create an ERC-20
How to test Python code and Vyper smart contract
How to deploy Vyper smart contracts on ZKsync using Moccasin
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
On-chain Data Analyst
$59,000 - $139,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on April 21, 2025
Duration: 2h 20min
Duration: 1h 51min
Duration: 58min
Duration: 2h 23min
Duration: 53min
Duration: 2h 24min
Duration: 28min
Duration: 1h 54min
Duration: 11min
Course Overview
About the course
Python basics
Introduction to Web3.py
Introduction to Titanoboa
Introduction to Moccasin
How to create an ERC-20
How to test Python code and Vyper smart contract
How to deploy Vyper smart contracts on ZKsync using Moccasin
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
On-chain Data Analyst
$59,000 - $139,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on April 21, 2025
Testimonials
Read what our students have to say about this course.
Chainlink
Chainlink
Gustavo Gonzalez
Solutions Engineer at OpenZeppelin
Francesco Andreoli
Lead Devrel at Metamask
Albert Hu
DeForm Founding Engineer
Radek
Senior Developer Advocate at Ceramic
Boidushya
WalletConnect
Idris
Developer Relations Engineer at Axelar