If anyone knows any examples for generating an html report in the Mocha framework, please share it. I have done googling and tried a lot but I have not been successful.
Looking at the source code for mocha: https://github.com/mochajs/mocha/tree/master/lib/reporters
It appears that there's a built-in HTML reporter. Have you tried running
mocha -R html?
You could give mochawesome a try which you can find here: https://github.com/adamgruber/mochawesome
I just tested it, really awesome results.