Ruby Full Stack Development: Unit Testing & Behavior Driven Development
Ruby 2.5
| Intermediate
- 12 videos | 1h 2m 4s
- Includes Assessment
- Earns a Badge
Testing is a critical part of software development. This course will explore the built-in unit testing features of Ruby, as well as how to use Cucumber and behavior driven development (BDD) to help with testing Ruby code. Begin by learning how to describe unit testing. Next, create and run a test unit. From there you will identify assertion types, assert numerical values, strings with patterns, and objects. As you progress, you will learn how to install Cucumber, create a scenario project with it, and setup step definitions to run a test. Finally, as an exercise, you will use unit tests and behavior driven development to verify code functionality.
WHAT YOU WILL LEARN
-
describe how unit testing can benefit development with Rubycreate and run a unit testidentify the different assertion types and how they can be used to test codeuse assertions to validate numeric valuesuse assertions to validate strings or patterns in stringsuse assertions to verify objects and object properties
-
set up and tear down prerequisites for running a unit testdescribe behavior driven development and how it can be used for testing using Cucumberinstall Cucumber and create a Cucumber projectcreate a scenario in a Cucumber .feature filecreate the step definitions for a Cucumber scenario and run the testuse unit tests and behavior driven development to verify code functionality
IN THIS COURSE
-
1.Describing Unit Testing3m 13sUP NEXT
-
2.Creating and Running a Unit Test5m 59s
-
3.Identifying the Assertion Types2m 17s
-
4.Asserting Numerical Values6m 35s
-
5.Asserting Strings Using a Pattern5m 5s
-
6.Asserting Objects5m 25s
-
7.Setting Up and Tearing Down within a Unit Test5m 9s
-
8.Describing Ruby and Cucumber4m 5s
-
9.Installing Cucumber and Creating a Project5m 52s
-
10.Creating a Scenario5m 29s
-
11.Creating Step Definitions and Running a Test5m 49s
-
12.Exercise: Testing Ruby Apps7m 5s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.