Test definitions

Let's look at some of the terms commonly used in TDD:

  • Unit test: Checks a small piece of code. This is a test that is run against a single function or class
  • Integration test: Checks multiple components of a code base; multiple units are combined and tested as a group. This can be a test that checks against a Python module or multiple modules
  • System test: Checks from end to end. This is a test that runs as close to what an end user would see
  • Functional test: Checks against a single function
  • Test coverage: A term defined as the determination of whether our test cases cover the application code. This is typically done by examining how much code is exercised when we run the test cases
  • Test fixtures: A fixed state that forms ...

Get Mastering Python Networking - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.