UNPKG

auto-psgen-cli

Version:

A CLI tool to automate project structure setup for API test

19 lines (16 loc) 440 B
const newman = require("newman"); function runNewman(collection, env, callback) { newman.run( { collection: require(collection), environment: require(env), reporters: ["cli", "json", "html"], reporter: { json: { export: "../reports/newman-report.json" }, html: { export: "../reports/newman-report.html" }, }, }, callback ); } module.exports = { runNewman };