Ship It: Testing, Git & Sharing Your Apps / Make it solid
Lesson 1 of 10
Why test your code?
Tests are small programs that check your code still works. Change something, run the tests, and you know in seconds whether you broke anything.
Key points
- Tests catch bugs before users do
- They let you change code without fear
- pytest is the most popular tool
pip install pytestYour turn
Install pytest in one of your app projects.
Quiz · +10 XP
What is the main benefit of tests?
Log in to save progress and earn XP.