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
Currently, the pagacke needs to be installed from GitHub:
yarn add https://github.com/dazza-codes/newman-reporter-winston
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'
}
}
})