visionmedia/mocha — Issue #304: json-cov reporter should not print report to stdout
Author: nherment
Created: 2012-03-05 13:05:21+00:00
State: open

Hi,

When running `mocha --reporter json-cov`, the coverage report is printed to `process.stdout`.

The consequence is that logs are mixed with the JSON coverage report. We are not using html-cov.
This forces us to parse stdout content and separate logs fron the JSON report. It's dirty coding and pretty much unreliable.

Mocha could take an extra parameter like `--file ` so that we can separate logs from reports.

Thanks,
- Nicolas