Ruby Full Stack Development: Unit Testing & Behavior Driven Development

Ruby 2.5    |    Intermediate
  • 12 videos | 1h 2m 4s
  • Includes Assessment
  • Earns a Badge
Rating 5.0 of 3 users Rating 5.0 of 3 users (3)
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 ruby
    Create and run a unit test
    Identify the different assertion types and how they can be used to test code
    Use assertions to validate numeric values
    Use assertions to validate strings or patterns in strings
    Use assertions to verify objects and object properties
  • Set up and tear down prerequisites for running a unit test
    Describe behavior driven development and how it can be used for testing using cucumber
    Install cucumber and create a cucumber project
    Create a scenario in a cucumber .feature file
    Create the step definitions for a cucumber scenario and run the test
    Use unit tests and behavior driven development to verify code functionality

IN THIS COURSE

  • 3m 13s
    Upon completion of this video, you will be able to describe how unit testing can benefit development with Ruby. FREE ACCESS
  • 5m 59s
    During this video, you will learn how to create and run a unit test. FREE ACCESS
  • Locked
    3.  Identifying the Assertion Types
    2m 17s
    In this video, you will identify the different assertion types and how they can be used to test code. FREE ACCESS
  • Locked
    4.  Asserting Numerical Values
    6m 35s
    In this video, you will use assertions to validate numeric values. FREE ACCESS
  • Locked
    5.  Asserting Strings Using a Pattern
    5m 5s
    In this video, learn how to use assertions to validate strings or patterns in strings. FREE ACCESS
  • Locked
    6.  Asserting Objects
    5m 25s
    In this video, you will learn how to use assertions to verify objects and their properties. FREE ACCESS
  • Locked
    7.  Setting Up and Tearing Down within a Unit Test
    5m 9s
    In this video, find out how to set up and tear down prerequisites for running a unit test. FREE ACCESS
  • Locked
    8.  Describing Ruby and Cucumber
    4m 5s
    After completing this video, you will be able to describe behavior driven development and how it can be used for testing using Cucumber. FREE ACCESS
  • Locked
    9.  Installing Cucumber and Creating a Project
    5m 52s
    In this video, you will learn how to install Cucumber and create a Cucumber project. FREE ACCESS
  • Locked
    10.  Creating a Scenario
    5m 29s
    In this video, you will learn how to create a scenario in a Cucumber .feature file. FREE ACCESS
  • Locked
    11.  Creating Step Definitions and Running a Test
    5m 49s
    During this video, you will learn how to create the step definitions for a Cucumber scenario and how to run the test. FREE ACCESS
  • Locked
    12.  Exercise: Testing Ruby Apps
    7m 5s
    Find out how to use unit tests and behavior driven development to verify code functionality. FREE ACCESS

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.

YOU MIGHT ALSO LIKE

Rating 5.0 of 1 users Rating 5.0 of 1 users (1)
Rating 4.6 of 89 users Rating 4.6 of 89 users (89)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.4 of 25 users Rating 4.4 of 25 users (25)
Rating 4.5 of 82 users Rating 4.5 of 82 users (82)