Test Your Python Apps

Learning PathSkills: Testing Python Code, PyTest, Mocking

Python Testing

No developer is perfect, we all make mistakes and if left unchecked, some of these mistakes can lead to failures or bugs that can be very expensive to recover from.

Testing your code helps to catch these mistakes or avoid getting them into production in the first place. Testing therefore is very important in software development. Used effectively, tests help to identify bugs, ensure the quality of the product and to verify that the software does what it is meant to do.

With this learning path you’ll learn how to effectively test your Python code using modern tools and current best-practices.

Additional Resources#

Test Your Python Apps

Learning Path ⋅ 6 Resources

Python Testing

Course

Test-Driven Development With "pytest"

In this hands-on course, you’ll see how to create Python unit tests with the "pytest" testing framework, execute them, and find the bugs before your users do.

(⭐ Basics)
Getting Started With Testing in Python

Tutorial

Getting Started With Testing in Python

Learn how to create a basic test, execute it, and look for undiscovered bugs. You’ll learn about the tools available to write and execute tests, check your application’s performance, and even look for security issues.

(⭐ Basics)
Getting Started With Testing in Python

Tutorial

4 Techniques for Testing Python Command-Line (CLI) Apps

Learn four essential testing techniques for Python command-line applications: "lo-fi" print debugging, using a visual debugger, unit testing with pytest and mocks, and integration testing.

(⭐⭐ Intermediate)
Python Development Tools Artwork

Course

Python Debugging With Pdb

In this hands-on course, you'll learn the basics of using pdb, Python's interactive source code debugger. Pdb is a great tool for tracking down hard-to-find bugs and allows you to fix faulty code more quickly.

(⭐⭐ Intermediate)
Continuous Integration with Python: An Introduction

Course

Continuous Integration With Python

Learn the core concepts behind Continuous Integration (CI) and why they are essential for modern software engineering teams. Find out how to how set up Continuous Integration for your Python project.

(⭐⭐⭐ Advanced)
Understanding the Python Mock Object Library

Tutorial

Understanding the Python Mock Object Library

Learn how to use the Python mock object library, unittest.mock, to create and use mock objects to improve your tests.

(⭐⭐⭐ Advanced)

Got feedback on this learning path?

« Browse All Learning Paths