O'Reilly logo

Python Testing Beginner's Guide by Daniel Arbuckle

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10

Pop quiz - code coverage

  1. It means that most of the code base was executed while running the tests.
  2. That would be a bad idea, because coverage doesn't tell you anything about the quality of your tests. It's for helping you find things that need to be tested, not for telling you whether your tests are any good.
  3. The most useful information that the coverage report provides is the list of lines that weren't executed, because that's what allows you to know what new tests you might want to add.

Pop quiz - version control hooks

  1. It can ensure that your tests are executed frequently, and can make you immediately aware when you're checking in broken code.
  2. Don't make it impossible to check in broken code. Don't make version control hooks a matter of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required