Lesson
Unit Testing and TDD in Python
This lesson covers how to write and run unit tests in Python, including an introduction to test-driven development (TDD) and its benefits.
Lesson metadata
Slug unit-testing-and-tdd-in-python
Subtopic —
Skill Level Intermediate
OSS Role(s) Maintainer, Contributor
Resource Type tutorial
Time Required 5m
Author Intersect Team, intersect@training.org
License https://creativecommons.org/licenses/by/4.0/
Keywords testing, unit tests, Python, TDD
Language(s) en
Additional metadata
Audience Software Developers, PhD Students, Open Source Contributors
Competency Required Python, basic understanding of software development
Creative Work Status Active
Date Created 2023-02-18
Date Modified 2023-05-25
Date Published 2023-06-01
Domain General Open Source
Has Part http://testing-guide.io
Is Part Of Software Quality Assurance Series
Learning Objectives After this lesson, the learner should be able to:
- Identify the purpose and benefits of testing in software development
- Describe different types of tests (unit tests, integration tests, functional tests)
- Apply testing frameworks like pytest to write and run tests
- Demonstrate test-driven development (TDD) practices in Python
- Implement testing strategies that integrate with continuous integration workflows
Mentions pytest, https://docs.pytest.org, A testing framework for Python
Ospo Relevance Moderate
Prerequisite Notes intermediate-python
Sorting Id 17
Teaches The student will be able to write and run unit tests in Python and understand the principles of test-driven development.
Topic Etc., Software Development Best Practices
Version 1.0.0