To be a proficient developer you need to have a solid grasp of test writing before putting code into production. In this course, we will take a hands-on look at Test-Driven Development by writing and implementing tests as soon as week one. TDD starts with good unit tests, so we will start there. Topics will also cover translating user specs into unit tests, applying the Red-Green-Refactor mantra, and applying mocks in python with the unittest.mock module. Once finished, you will have covered all the steps of TDD before development.
Class Deals by MOOC List - Click here and see Coursera's Active Discounts, Deals, and Promo Codes.
Course 2 of 4 in the Test-Driven Development Specialization.
Syllabus
WEEK 1
Automated Unit Testing Basics
Test-Driven Development starts with testing, and good TDD starts with good unit tests.
Unit Testing best practices
In this module we will discover the best practices for writing unit tests.
WEEK 2
Writing Tests for TDD
In this module, we'll be translating user specs into unit tests, including all the steps of TDD before development.
The Red-Green-Refactor cycle in practice
In this module we'll discover a hands on approach to applying the Red-Green-Refactor mantra of unit testing.
WEEK 3
The power of mocks
In this module we'll learn how to use mocks in python with the unittest.mock module.