Tutorialspoint

April Learning Carnival is here, Use code FEST10 for an extra 10% off

Unit Testing and Test Driven Development in NodeJS

person icon Richard Wells

4.5

Unit Testing and Test Driven Development in NodeJS

Learning the discipline of Test Driven Development (also known as TDD) in NodeJS with Javascript.

updated on icon Updated on Apr, 2024

language icon Language - English

person icon Richard Wells

English [CC]

category icon IT & Software,Other IT & Software,Unit Testing

Lectures -33

Duration -1.5 hours

4.5

price-loader

30-days Money-Back Guarantee

Training 5 or more people ?

Get your team access to 10000+ top Tutorials Point courses anytime, anywhere.

Course Description

Test Driven Development is a key discipline every software developer should practice to ensure the quality of their code.  In this course I'll show you how to use this discipline in your everyday coding practices to help ensure the quality of your code base.

In this course we’ll be going over:

  • What is Unit Testing and Test Driven Development and how does it help you.
  • What are the Mocha and Chai testing libraries and how are they used for writing unit tests in NodeJS.
  • How to setup some common NodeJS development environments to use Mocha and Chai.
  • What are Test Doubles and how do you implement and use them with Sinon.
  • What are some Best Practices for unit testing and Test Driven Development.
  • We’ll also walk through some hands on example programming sessions using TDD in NodeJS.

Goals

What will you learn in this course:

  • Learn what is Unit Testing and Test Driven Development and how does it help you.
  • What are the Mocha and Chai testing libraries and how are they used for writing unit tests in NodeJS.
  • How to setup some common NodeJS development environments to use Mocha and Chai.
  • What are Test Doubles and how do you implement and use them with Sinon.
  • What are some Best Practices for unit testing and Test Driven Development.
  • We’ll also walk through some hands on example programming sessions using TDD in NodeJS.

Prerequisites

What are the prerequisites for this course?

  • Introductory understanding of Javascript and NodeJS
  • A PC running Windows, MacOS X, or Linux
  • NodeJS installed on the PC
  • Your preferred IDE or code editor installed
Unit Testing and Test Driven Development in NodeJS

Curriculum

Check out the detailed breakdown of what’s inside the course

Introduction
1 Lectures
  • play icon Introduction 02:22 02:22
Overview and Setting Up Your Development Environment
9 Lectures
Tutorialspoint
Exploring Mocha and Chai with Examples
6 Lectures
Tutorialspoint
Hands-On Example - Implementing a Checkout Cart with TDD
7 Lectures
Tutorialspoint
Isolating Your Unit Tests
5 Lectures
Tutorialspoint
Best Practices for Unit Testing and TDD
3 Lectures
Tutorialspoint
Conclusion
1 Lectures
Tutorialspoint

Instructor Details

Richard Wells

Richard Wells

e


Course Certificate

Use your certificate to make a career change or to advance in your current career.

sample Tutorialspoint certificate

Our students work
with the Best

Related Video Courses

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
Annual Membership

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
Online Certifications

Talk to us

1800-202-0515