Ruby Full Stack Development: Unit Testing & Behavior Driven Development

Ruby 2.5
  • 12 Videos | 1h 7m 34s
  • Includes Assessment
  • Earns a Badge
Likes 5 Likes 5
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

  • Playable
    1. 
    Describing Unit Testing
    3m 13s
    UP NEXT
  • Playable
    2. 
    Creating and Running a Unit Test
    5m 59s
  • Locked
    3. 
    Identifying the Assertion Types
    2m 17s
  • Locked
    4. 
    Asserting Numerical Values
    6m 35s
  • Locked
    5. 
    Asserting Strings Using a Pattern
    5m 5s
  • Locked
    6. 
    Asserting Objects
    5m 25s
  • Locked
    7. 
    Setting Up and Tearing Down within a Unit Test
    5m 9s
  • Locked
    8. 
    Describing Ruby and Cucumber
    4m 5s
  • Locked
    9. 
    Installing Cucumber and Creating a Project
    5m 52s
  • Locked
    10. 
    Creating a Scenario
    5m 29s
  • Locked
    11. 
    Creating Step Definitions and Running a Test
    5m 49s
  • Locked
    12. 
    Exercise: Testing Ruby Apps
    7m 5s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Likes 18 Likes 18  
Likes 16 Likes 16