Detalhes do pacote

@ephesoft/mocha-reporter

ephesoft25MIT2.8.0

Custom Mocha reporter to combine our custom junit reporter and built-in spec reporters

readme (leia-me)

@ephesoft/mocha-reporter

Custom Mocha reporter to combine JUnit (Bitbucket), SonarCloud and spec (console output) reporters. Allowing report files to be generated for consumption by our tooling while regular terminal output is preserved.

Installation

npm install --save-dev mocha @ephesoft/mocha-reporter

Configuration

Add the following to .mocharc.js

module.exports = {
  ...
  reporter: '@ephesoft/mocha-reporter'
}

References

Potential Future Enhancements

  1. The JUnit reporter could be updated to use testsuites grouping up the tests by file like the SonarCloud reporter
  2. Both reporters could be updated to user a proper XML utility for generating the elements