1.0.4 • Published 5 years ago
@sonarsoftware/karma-basic-text-reporter v1.0.4
karma-basic-text-reporter
Generates a file based on all current failing tests.
Installation
$ npm i @sonarsoftware/karma-basic-text-reporter --save-dev
Usage
In your karma config file add @sonarsoftware/karma-basic-text-reporter
to your plugins.
plugins: ['karma-*', '@sonarsoftware/karma-basic-text-reporter'],
Next add it to your reporters.
reporters: ['mocha', '@sonarsoftware/basicTextReporter']
Then add the config option, passing in your desired file location, and file extension (currently only supports json).
'@sonarsoftware/basicTextReporter': {
path: path.resolve(__dirname, './../../reports/'),
extension: '.json'
}
TODO
- More formats, e.g. Html, YML, etc.
- Tests
- Automatic cloud storage uploading (Google Drive, Dropbox)