mocha-html-single-reporter

A simple reporter for mocha that publishes results as a single html file and can be viewed without a server. This can be easily integrated with CI system.

Usage no npm install needed!

<script type="module">
  import mochaHtmlSingleReporter from 'https://cdn.skypack.dev/mocha-html-single-reporter';
</script>

README

mocha-html-single-reporter

A simple reporter for mocha that publishes results as a single html file and can be viewed without a server. This can be easily integrated with CI system.

Usage

mocha --reporter mocha-html-single-reporter

A 'testreport.html' file will get generated which will have the pass/fail details. Also,gives the details of the error in a popup window on clicking the 'Fail' cases link.

Sample report

sample report