cybertk / abao

REST API automated testing tool based on RAML
MIT License
353 stars 59 forks source link

Make log-statements in hookfiles output reporter-specific content #193

Open r-schmidtke opened 7 years ago

r-schmidtke commented 7 years ago

It would be nice if one could have small log statements in the hookfiles that are compatible with the selected reporter.

console.log("something") will break the syntax of the output files (xunit-reporter for example)

plroebuck commented 6 years ago

Will be adding --reporter-options to upcoming version.

plroebuck commented 5 years ago

console.log("something") will break the syntax of the output files (xunit-reporter for example)

Mocha's reporters all write (in some form or another) to process.stdout. From Abao, if your hookfiles wrote to process.stderr (e.g., console.warn or console.error), no mixing would occur.

Take a look at the debug module; read about both basic and advanced usage.