From the course: Managing Python Projects

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

What to test

What to test - Python Tutorial

From the course: Managing Python Projects

Start my 1-month free trial

What to test

- Testing is important. It validates our code and guard us against breaking one part of the code when changing another. If you read about testing, you'll notice there are a lot of test types. For example, at How SQLite Is Tested, You can see the following test types: Out-of-memory, crash, fuzz, regression, and much more. Since you don't have time to implement all the tests, what should you focus on? The answer, of course, is what brings the most value. In my experience, the following test types have the best value. However, it might differ for your project. Integration. This tests check the connection between the subsystems and connection with external systems. Regression. This tests check the running code over known data, returns a known solution. Fuzzing. This tests generate random data and throw it at your code. Linters. These are static checkers that find common issues without running your tests.…

Contents