Format Mocha test runner output to standardized JSON, grouped by successful suites and individual failed tests