Writing Testable Code

In this course, you'll learn how to write code that is easy to test. These skills will make practices like unit testing and test-driven development easier to accomplish.
Course info
Rating
(301)
Level
Beginner
Updated
May 5, 2017
Duration
2h 2m
Table of contents
Description
Course info
Rating
(301)
Level
Beginner
Updated
May 5, 2017
Duration
2h 2m
Your 10-day individual free trial includes:

Expert-led courses

Keep up with the pace of change with thousands of expert-led, in-depth courses.
Description

Testable code is code that makes automated testing quick, easy, and enjoyable. In this course, Writing Testable Code, you'll learn how to write code that is easy to test. These skills are necessary to refactor code that is difficult to test into code that is easily testable. First, you'll be introduced to testable code, and how creating seams in your code makes code testable. Next, you'll learn a series of best practices that makes testing code easier such as, simplifying object construction, working with dependencies, and managing application state. Finally, you'll explore best practices further by walking through a code demo of each practice so you can see first-hand how they're implemented. These skills will make practices like unit testing significantly easier for you. By the end of this course, you'll have the skills necessary for writing testable code.

About the author
About the author

Matthew is a data science consultant, author, and international public speaker. He has over 17 years of professional experience working with tech startups to Fortune 500 companies. He is a Microsoft MVP, ASPInsider, and open-source software contributor.

More from the author
Exploratory Data Analysis with R
Beginner
2h 29m
Apr 13, 2021
Data Science with R
Beginner
2h 30m
Apr 8, 2021
The AI Developer’s Toolkit
Beginner
1h 45m
Mar 15, 2021
More courses by Matthew Renze