Update from future (2025):
You can simply generate the mocha report as JSON, which will include all the failed and successful ones (even the file name and titles of failing/successful cases - and not just their count).
mocha --reporter=json --reporter-option output=filesData.json testCases.js
You can then read this JSON output and do the needful (eg. exporting to monitoring server)