Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
r-schmidtke opened this issue Nov 2, 2016 · 2 comments
Open

Comments

@r-schmidtke
Copy link

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
Copy link
Collaborator

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

@plroebuck
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants