DevOps Foundations: Implement Behavior Driven Design Principles
In this lab, you’ll practice working with Behavior Driven Design (BDD). When you’re finished, you’ll have the skills and knowledge of how BDD works to implement it in your own projects and processes.
Terms and conditions apply.
Lab info
Lab author
Challenge
Get Started in the Lab Environment
Here are the initial instructions and explanation of the lab environment. Read this while your environment is busy creating itself from nothing. Yes, this violates physics; we know. How fun!
Challenge
Understand the Structure of a BDD Project
To start this lab, you'll look over the three components of an already-completed behavior-driven design (bdd) setup: the code, the feature, and the tests that connect the code to the feature.
Challenge
Understand the Pytest BDD Test File
You'll now examine the parts of the bdd test file, understand how they map to the code and to the feature, and execute the tests therein.
Challenge
Fix the Code and Getting from Red to Green
To finish up this lab, you'll find the problem the test is demonstrating, fix the problem, get all of your tests passing, and look at two super-simple reporting formats.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.
Recommended prerequisites
- Software development in general
- Basic knowledge of using Visual Studio Code in a Ubuntu environment
- Python is helpful, but the examples are straightforward
- Basic competence at the bash command line