@ephesoft/mocha-reporter
v2.8.0
Published
Custom Mocha reporter to combine our custom junit reporter and built-in spec reporters
Downloads
60
Keywords
Readme
@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
- The JUnit reporter could be updated to use testsuites grouping up the tests by file like the SonarCloud reporter
- Both reporters could be updated to user a proper XML utility for generating the elements