From the course: Cisco DevNet Associate (200-901) Cert Prep 1: Software Development and Design

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Illustrate TDD with an Example

Illustrate TDD with an Example

From the course: Cisco DevNet Associate (200-901) Cert Prep 1: Software Development and Design

Start my 1-month free trial

Illustrate TDD with an Example

- [Instructor] Let's talk about test driven development best practices and work on an example. In this section, we would develop a simple feature using the test driven development process. We will again use Python as the coding language. Do not worry if you're not familiar with Python. All we need to focus on here is the workflow and to understand the process. Before we dive into the actual example, let's take a moment to quickly go over some of the best practices to help us understand the workflow. The most important best practice in TDD is to keep each of the co-units small. In Python and other object oriented languages, this usually means the unit is a class, a module, or a group of related functions. By keeping the unit small, we could also have cleaner code as well as a self documented test. We considered them self-documented because they're easy to read and to understand. It is also often helpful to keep a…

Contents