What are some helpful testing practices?



What are some helpful testing practices?


How you test your code depends on many different things: program size, complexity of what you’re testing, resources available, your knowledge of what needs to be tested, lots of things! For that reason, it can be difficult to know how to test a program and even more difficult to know when you’ve done enough testing to say with any certainty that the code is ready to go!
As a general rule of thumb, though, for smaller projects like these:
Run your code whenever you add a new feature. That can be as small as a single word of code, a line, or an entire block of code. Introducing something new into a previously working program is a good reason to test!

FAQ: Learn Python - Pyglatin - Pop Quiz!