UNPKG

newman-reporter-aiotests

Version:

Newman Custom reporter to report results to AIO Tests - Jira

16 lines (14 loc) 510 B
const chalk = require('chalk'); const AioTestsLogger = { log: (text) => { console.log(text); }, error: (text, addReporter) => { if(addReporter) console.log(chalk.hex('#0094a6').underline.bold('AIO Tests Newman Reporter :')); console.error( ' - ' + chalk.red(text)); }, logStartEnd: (text) => { console.log( chalk.hex('#0094a6').bold("*".repeat(15) + ' AIO Tests Newman Reporter :' + text + " " + "*".repeat(15))); } } module.exports = AioTestsLogger;