/newman-reporter-winston

A generic newman reporter that uses logger (such as winston)

Primary LanguageJavaScriptISC LicenseISC

Newman winston reporter

A newman reporter that logs test results using winston.

  • Assertion errors are logged with log-level error
  • Passed assertions are logged with log-level info

Install

Currently, the pagacke needs to be installed from GitHub:

yarn add https://github.com/dazza-codes/newman-reporter-winston

Configure

Simply add winston as reporter. You can configure the winston reporter using the reporter.winston object.

newman.run({
    collection: "your-collection.json",
    reporters: 'winston',
    reporter: {
      winston: { // any options under winston are passed to winston's Logger constructor 
        level: 'info'
      }
    }
})