mocha json output file reporter
npm install --save-dev custom-mocha-json-reporter
mocha --reporter custom-mocha-json-reporter
The default file output will be test-report.json
in the current working directory
- output - specify exact name of output file
mocha --reporter custom-mocha-json-reporter --reporter-options output=my-file.json