In this Python tutorial we will cover libraries and frameworks such as:
The aim is to help you to write unit tests that improve code quality, and also support future development. Good unit tests should provide immediate value in terms of reduced debugging and better design, and the investment writing them should pay back over the whole lifetime of your software.
What is unit testing in Python?
Unit testing is when the smallest parts of a software are tested. It is testing that each unit of the software performs the way it is meant to. Python uses the unittest test framework.
What are some benefits of unit testing with Python?
Some benefits include:
Improved code quality
Support for future development
What will I learn in this course?
Ultimately you will learn how to write good unit tests for your Python code. Some of topics you will learn include:
Python unittest - what it is and how to use it
When and why you should write unit tests
Using Pytest for unit testing in Python
Testable documentation with Doctest
Test doubles: Mocks, Fakes, and Stubs
Test coverage and parameterized tests
Who should take this course?
This course is for anyone who wants to learn how to test their Python code through unit tests to improve code quality and support future development. Software developers will especially find this course beneficial.
Are there prerequisites to this course?
In order to understand and fully appreciate how to unit test your Python code, you should understand how to write Python code in the first place and have some experience with software development.
Emily is an experienced software developer specializing in Test Driven Development, agile methods, and automated testing in general. She is a well known speaker, coding dojo facilitator, blogger, and author of "The Coding Dojo Handbook".