- Level Professional
- المدة 15 ساعات hours
- الطبع بواسطة LearnQuest
-
Offered by
عن
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الوحدات
Course Introduction
1
Videos
- Course Introduction
Python unittest basics
1
Assignment
- Optional unit test quiz
1
Labs
- Write unittest TestCases for various scenarios
2
Videos
- Unittest module introduction and demo
- Module 1 Wrap Up
1
Readings
- Unittest module resources
Unit Testing best practices
2
Assignment
- Optional quiz
- Module 1-2 Quiz
1
Labs
- Clean up test code
2
Videos
- How to unit test badly
- Module 2 Wrap Up
1
Readings
- Unit testing best practices
From Specs to Testable Assertions
1
Assignment
- Optional, breaking down user requirements
1
Discussions
- What's wrong with untestable requirements?
1
Labs
- Write Tests For Given Specifications
1
Videos
- Translating requirements to testable assertions
1
Readings
- Breaking down complex requirements
The relationship between unit tests and documentation
3
Videos
- How unit tests supplement docs
- Generating docs with Pylint
- Module 3 Wrap Up
2
Readings
- Supplementing documentation
- Clean Code and PEP 8
The Red-Green-Refactor cycle in practice
2
Assignment
- Optional Red-Green-Refactor Quiz
- Red-Green-Refactor in Practice
1
Discussions
- Red-Green and REFACTOR
1
Labs
- Finance Formulas Lab
1
Videos
- Module 4 Wrap Up
1
Readings
- A step-by-step example for Red-Green-Refactor
A High level Overview to Mocks in Unit Tests
1
Discussions
- What's the danger of mocking away all your dependencies?
1
Videos
- A High Level Overview of Mocks
1
Readings
- Gaining Deeper Knowledge About Mock Objects
A Hands on Approach to Mocks
2
Assignment
- Optional Mock Objects Quiz
- Module 3-5 Quiz
2
Discussions
- Mock is based on action -> assertion
- Mocking and TDD
1
Labs
- Mock in Action Lab
2
Videos
- Mocks in Action
- Module 5 Wrap Up
1
Readings
- A look at unittests.mock
Auto Summary
Dive into "A Practical Introduction to Test-Driven Development" with Coursera, designed for IT & Computer Science professionals. Under expert guidance, master TDD through hands-on practice, focusing on unit tests, user specs translation, the Red-Green-Refactor mantra, and Python mocks. Complete this comprehensive 900-minute course with flexible Starter and Professional subscription options. Perfect for developers aiming to enhance their coding proficiency.

Doug Purcell