Node Mocha test log save to disk
mocha.js, node.js
Solution
You should redirect `stderr` to that logfile too:
mocha -R spec test/**/*_test.js > report 2>&1
EDIT: if you want the contents to be sent both to a file and the console:
mocha -R spec test/**/*_test.js 2>&1 | tee report
Problem
Need to save the test logging to the disk I have tried the below code ``` mocha -R spec test/**/*_test.js > report ``` suppose any test case failed it not log into the 'report' file. Please suggest best way to log the test report.