Node.js Microservices: Testing and Continuous Integration
Good test coverage is very important for continuous delivery of Node.js microservices. This course will teach you how to implement unit, integration, and end-to-end test coverage using Jest in your Node.js microservices so you can deliver quality code with confidence.
What you'll learn
Good test coverage enables more frequent code delivery with greater confidence. In this course, Node.js Microservices: Testing and Continuous Integration, you’ll learn to implement test coverage into your Node.js microservices and continuous delivery pipelines. First, you’ll explore setting up and configuring your codebase for test coverage. Next, you’ll discover how to implement test coverage into your codebase via unit, integration, and end-to-end test suites using Jest. We’ll accomplish this using a variety of testing concepts such as assertions, stubs, mocks and spies. Finally, you’ll learn how to integrate test coverage into your continuous integration and delivery pipelines and processes. When you’re finished with this course, you’ll have the skills and knowledge of testing Node.js microservices needed to be confident in your ability to deliver high quality Node.js code on demand and at scale.
Table of contents
- Integration Tests vs Unit Tests 2m
- A Practical Strategy for Adding Integration Tests to Globoticket 2m
- Demo: Implementing Integration Tests for Globoticket 3m
- Seeding Databases for Integration Testing 2m
- Demo: Using Seeders for Integration Testing 6m
- Improving Integration Test Reliability 2m
- Demo: Testing the Ticket Reservation Path via the Message Queue 4m
- Defining the Practical Value of End-to-end Tests 2m
- Identifying the Most Critical Business Functions for Testing 2m
- Demo: Configuring and Running Our Test Environment 2m
- Demo: Setup and Configure End-to-end Tests 3m
- Demo: Writing End-to-end Tests for Globoticket 4m
- Adding Npm Scripts for End-to-end Tests and Cleaning up after Ourselves 1m