Newman

The Newman command-line app can run the tests created by the Postman app. This makes running Postman tests really simple, and it also makes it easy to include these tests in command-line-driven build scripts.

Checking for Newman

You can check if you already have Newman installed by typing the following at the command line:

 newman -v

If it’s installed, you’ll get a response showing the version number of your release of Newman. On my machine I get this:

 4.5.0

Installing Newman

You can install the Newman test runner using the npm utility you installed earlier (see NodeJS and npm). To do that, just type the following at the command line:

 npm -g install newman

That’s all you need to do. You can check to see if it was properly installed ...

Get Design and Build Great Web APIs now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.