8115  Reviews star_rate star_rate star_rate star_rate star_half

TDD and Pair Programming in JavaScript

Test-driven Development (TDD) is a software development process that focuses on writing tests before writing code. This TDD course helps students to ensure that the code is written in a way that is...

Read More
$810 USD
Course Code WA3206
Duration 1 day
Available Formats Classroom, Virtual

Test-driven Development (TDD) is a software development process that focuses on writing tests before writing code. This TDD course helps students to ensure that the code is written in a way that is maintainable and extensible using JavaScript with Jest and Pair Programming.

Skills Gained

  • Test JavaScript with Jest
  • Work with Pair Programming
  • Implement TDD and Pair Programming in a JavaScript Project

Who Can Benefit

This TDD course is designed for Software Developers, Team Leads, Enterprise Architects, Solution Architects, and Information Technology Architects.

Prerequisites

Some knowledge of JavaScript is beneficial but not required.

Course Details

Outline

Chapter 1 – Test-driven Development (TDD)

  • TDD Defined
  • Why TDD
  • TDD Benefits
  • Reframing our Tests
  • RedGreen Testing
  • Unit Tests
  • The 5 Stages
  • BDD Definition
  • Gherkin Format
  • ATDD Definition
  • Comparing TDD, BDD and ATDD
  • ROLES & RESPONSIBILITIES – the three amigos

Chapter 2 – Pair Programming

  • Defined
  • Compliments TDD
  • Type 1: Driver & Navigator
  • Type 2: The Unstructured Style
  • Type 3: Strong Style Pairing
  • Type 4: Ping Pong Pairing
  • Type 5: Backseat Navigator
  • Type 6: Tour Guide
  • Stats
  • Best Practices
  • Benefits

Chapter 3 - Testing JavaScript with Jest

  • Jest Testing Framework
  • Features
  • Installation of Jest
  • A Basic Test
  • Run Test
  • Test Failures
  • Interactive Mode
  • Code Coverage
  • Unit Testing
  • Anatomy of a Unit Test
  • Expectations (Assertions)
  • Common Matchers
  • Combining Tests
  • Testing async code with done
  • Testing Promise Based Async Code
  • Setup and Teardown
  • Setup and Teardown Example
  • Method Stubbing and Call Tracking with Spies
  • A Spy Example
  • spyOn Setup Variations
  • Simulating Exceptions
  • Summary

Lab Exercises

  • Lab 1: Pair Programming Exercise
  • Lab 2. Testing JavaScript with Jest
  • Lab 3: TDD and Pair Programming Project
|
View Full Schedule