Skip to content

Instantly share code, notes, and snippets.

@vdespa
Created April 11, 2018 11:29
Show Gist options
  • Save vdespa/9e24cd6a2dfab90d0efbddb6eeca8dd6 to your computer and use it in GitHub Desktop.
Save vdespa/9e24cd6a2dfab90d0efbddb6eeca8dd6 to your computer and use it in GitHub Desktop.
Running newman as a Node.js module
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