Created
April 11, 2018 11:29
-
-
Save vdespa/9e24cd6a2dfab90d0efbddb6eeca8dd6 to your computer and use it in GitHub Desktop.
Running newman as a Node.js module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const newman = require('newman'); | |
newman.run({ | |
collection: require(‘./postman_collection.json’), | |
reporters: 'cli' | |
}, function (err) { | |
if (err) { throw err; } | |
console.log('Collection run complete!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment