Test Driven Development is a key discipline every software developer should practice to ensure the quality of their code. In this course I'll show you how to use this discipline in your everyday coding practices to help ensure the quality of your code base.
Test Driven Development is a key discipline every software developer should practice to ensure the quality of their code. In this course I'll show you how to use this discipline in your everyday coding practices to help ensure the quality of your code base.
In this course we’ll be going over:
What is Unit Testing and Test Driven Development and how does it help you.
What is the PyTest testing library and how is it used for writing unit tests in Python.
How to setup some common Python development environments to use PyTest.
What are Test Doubles and how do you implement and use them with unittest.mock.
What are some Best Practices for unit testing and Test Driven Development.
We’ll also walk through some hands on example programming sessions using TDD in Python.
In this video I introduce myself and the concepts of unit testing and Test Driven Development.
In this lecture we'll go over what unit testing is and why it's so important to the software development process.
In this lecture we'll go over what Test Driven Development is, a little bit of it's history, it's benefits, and it's work flow.
In this lecture I'll show you a short example Test Driven Development coding session using Pytest and implementing the Fizz Buzz Code Kata.
In this lecture I'll go over the Python virtual environments and why using them is a best practice for all python developers.
In this lecture I walk through setting up and using Pytest with the JetBrains PyCharm IDE.
In this lecture I walk through setting up and using Pytest with Eclipse PyDev IDE.
In this lecture I'll go over the Pytest Unit Testing framework for Python.
In this lecture I'll go over how PyTest automatically discovers unit tests and provide some examples.
In this lecture we'll go over PyTest's implementation of the class XUnit style of setup and teardown code and go over a few examples.
In this lecture I'll go over what PyTest Test Fixtures are and how to use them. Then I'll work through some examples.
In this lecture we'll go over how the python assert statement is used in your PyTest unit tests, how to test that exceptions are raised properly, and go work through some examples.
In this lecture I go over some useful PyTest command line arguments and provide some examples.
In this lecture I'll go over the Supermarket Checkout Kata which will be the focus of this section.
In this lecture I create a new PyCharm project for this kata and verify I have PyTest setup correctly. Then I implement the first test case.
In this lecture I'll implement the 2nd, 3rd, and 4th test cases for the supermarket checkout kata. Adding item prices, adding items, and calculating the total.
In this lecture I implement the next test case for the supermarket checkout kata where I add multiple items to the checkout list and validate I have the correct total.
In this lecture I add discount rules and applying discounts when calculating the total.
In this lecture I implement the last test case of the supermarket checkout kata. Generating an exception if an item is added which doesn't have a price defined.
In this lecture I go over what test doubles are and how they help you test your production code in isolation. Then I'll go over how to use the unittest.mock mocking framework and the PyTest monkeypatch TestFixture for easily implementing test doubles in your tests.
In this lecture I'll work through a hands on TDD coding session with Pytest and unitest.mock for implementing and using test doubles.
In this lecture I'll go over some unit testing and TDD best practices that I've found essential to getting the full benefit of practicing TDD.
In this lecture I wrap up the course by reviewing what we went over in the course and what the next steps are in the path of learning unit testing and Test Driven Development in python
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.