Join Robin Beck for an in-depth discussion in this video Getting set up, part of Behavior-Driven Development.
- [Instructor] Before diving into the course content, let's take a moment to make sure we have the correct software installed on our machine. While this course is mostly theory based, we'll also take a look at the practical application of creating and applying some tests. While it's not necessary for you to write and execute these tests yourself, if you'd like to follow along, you're more than welcome to. If you plan on joining me in the hands-on portion of the class, we'll need to make sure that you have the necessary software installed on your computer.
To execute the commands in this course, you'll need to have the Ruby programming language installed on your machine. Navigate to their downloads page if you don't have it installed already. Any modern version of Ruby above the 2.0 release will probably be just fine. We'll also be using the cucumber and rspec RubyGems, but we'll be using the Bundler Ruby tool to handle the installation of these gems so it's only necessary to install the Bundler tool initially.
To install Bundler, head over to their downloads page. Under the Getting Started section, they show how easy it is to grab Bundler with the gem install bundler command. While any modern version of these tools will probably work for the exercises, I need to make a short disclaimer that at the time I created this course, I used particular versions of the tools for hands-on portions of the class. I can't guarantee that newer versions of the software will work in the same way that I demonstrate.
If at any point you're having difficulties making any of these tools work properly, consider installing the versions of the tools that I used to create the course. I'll be using Ruby 2.5.1 and Bundler 1.16.2. Later on, I'll be using Cucumber 3.1.1, but you don't need to install that just yet. I'll be performing the class exercises using the Visual Studio Code Text Editor.
You can follow along using any text editor you'd like such as Atom, Sublime Text, or VI. If you'd like to use the same lab environment that I demonstrate, you can head over to Visual Studio Code's download page and grab the installer for your platform. Later on in this course, I'll be running commands inside of Terminal. You can use your native operating system's shell. I'll be using the integrated shell from within Visual Studio Code.
If you're using this text editor, I'll demonstrate setting this up later on. Otherwise, use your own native Terminal or PowerShell sessions to follow along. That's all we should need to get setup. Let's dive in.
- What is behavior-driven development?
- Agile and BDD
- BDD examples
- BDD frameworks
- Defining scenarios
- Domain modeling
- Enforcing object-oriented design
- BDD process: Behavior before function