Skip to content

Chapter 9: Unit Testing #11

@joshuamabina

Description

@joshuamabina

Unit Testing is the first level of software testing where the smallest testable parts of a software are tested. This is used to validate that each unit of the software performs as designed. The unittest test framework is python's xUnit style framework.

Source: https://diveintopython3.net/unit-testing.html


Review Questions

  1. What is Test-Driven Development (TDD)?
  2. Why does Test-Driven Development matter?
  3. What is Unit Testing?
  4. Why does Unit Testing matter?
  5. How does Test-Driven Development differ from Unit Testing?
  6. Not every automated test is a unit test. Discuss.
  7. What makes a unit test good or bad?
  8. It is not enough to test for success. Discuss.
  9. Apart from unittest, are there any other Pythonic unit testing libraries we can leverage?

Metadata

Metadata

Labels

class notesNew class notes or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions