O'Reilly logo

REST API Development with Node.js : Manage and Understand the Full Capabilities of Successful REST Development by Fernando Doglio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Fernando Doglio 2018
Fernando DoglioREST API Development with Node.js https://doi.org/10.1007/978-1-4842-3715-1_8

8. Testing your API

Fernando Doglio1 
(1)
La Paz, Canelones, Uruguay
 

It’s time to take a small break from REST and API design to discuss something equally important for your project: how are you going to test it?

The entire point of this chapter is to give you a little insight into what we normally mean by “testing” in the context of software development. I’ll cover some basic principles such as unit testing, mocking, and so forth, and once you’re ready, we’ll go over some examples of how to implement those concepts in your Node.js project.

So let’s get started.

Testing 101

First things first: I’m going to be covering unit testing in this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required