Skip to Content
Design and Build Great Web APIs
book

Design and Build Great Web APIs

by Mike Amundsen
October 2020
Intermediate to advanced
358 pages
8h 39m
English
Pragmatic Bookshelf
Content preview from Design and Build Great Web APIs

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Designing Web APIs

Designing Web APIs

Brenda Jin, Saurabh Sahni, Amir Shevat

Publisher Resources

ISBN: 9781680508123Errata Page