Common plugin for testplane and hermione which is intended to aggregate the results of tests running
npm install json-reporter

Common plugin for:
which is intended to aggregate the results of tests running.
You can read more about testplane plugins here.
``bash`
npm install json-reporter
Plugin has following configuration:
* enabled (optional) Boolean – enable/disable the plugin; by default plugin is enabledString
* path (optional) - path for saving json report file; by default json report will be saved into json-reporter.json inside current work directory.Boolean
* includeHistory (optional) – include test execution history in the json report; by default history is not included. Note: history is not available for skipped tests and may be undefined.
Also there is ability to override plugin parameters by CLI options or environment variables
(see configparser).
Add plugin to your testplane config file:
`ts`
export default {
// ...
plugins: {
'json-reporter/testplane': {
enabled: true,
path: 'my/custom/report.json',
includeHistory: true
}
},
//...
}
Add plugin to your hermione config file:
`js`
module.exports = {
// ...
plugins: {
'json-reporter/hermione': {
enabled: true,
path: 'my/custom/report.json',
includeHistory: true
}
},
//...
}
Run mocha tests:
`bash`
npm run test-unit
Run tests with istanbul coverage calculation:
`bash`
npm run cover
Run eslint codestyle verification
`bash``
npm run lint