From the course: Managing Python Projects

Unlock the full course today

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

How much to test

How much to test - Python Tutorial

From the course: Managing Python Projects

Start my 1-month free trial

How much to test

- [Instructor] You will never have enough tests. Developers tend to think that the more tests you have, the better. However, tests have a price. It takes time and effort to write and maintain tests. Changes to the code take more time the more tests you have. You can think of tests as weight and the more you have, it's harder to change direction. It doesn't mean you shouldn't write tests, but you need to know the cost and factor it in. I say that the major factor of how much to test is the cost of error. The higher the cost, the more tests you'll write. For example, if you work at NASA chances are that every bug can cost billions and maybe even lives of people. NASA has a very strict process on how to write software, which is probably an overkill for you. You should evaluate the risk of having a bug and plan testing accordingly. Note, that it doesn't matter how much you test, some bugs will slip through. Even NASA, with…

Contents