https://github.com/jamiemason/karma-nested-reporter
Easy to read test output with nested describe and it blocks
https://github.com/jamiemason/karma-nested-reporter
karma karma-reporter test-reporting
Last synced: about 1 month ago
JSON representation
Easy to read test output with nested describe and it blocks
- Host: GitHub
- URL: https://github.com/jamiemason/karma-nested-reporter
- Owner: JamieMason
- License: other
- Created: 2013-11-28T12:53:11.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-06-20T11:45:37.000Z (almost 6 years ago)
- Last Synced: 2025-04-20T23:48:05.641Z (about 2 months ago)
- Topics: karma, karma-reporter, test-reporting
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/karma-nested-reporter
- Size: 91.8 KB
- Stars: 14
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# karma-nested-reporter
> A Karma plugin. Report results with each describe indented.
[](https://www.npmjs.com/package/karma-nested-reporter)
[](https://www.npmjs.com/package/karma-nested-reporter)
[](https://david-dm.org/JamieMason/karma-nested-reporter)
[](https://gitter.im/JamieMason/karma-nested-reporter)
[](https://www.paypal.me/foldleft)
[](https://gratipay.com/~JamieMason/)
[](https://github.com/igrigorik/ga-beacon)
[](https://github.com/JamieMason)
[](https://twitter.com/fold_left)
## Installation
The easiest way is to keep `karma-nested-reporter` as a devDependency in your `package.json`:
```json
{
"devDependencies": {
"karma": ">=0.9",
"karma-nested-reporter": "0.1.5"
}
}
```You can simply do it with:
```
npm install karma-nested-reporter --save-dev
```## Enabling this reporter
It's recommended that you use this reporter **instead of** the `progress` reporter.
```js
// karma.conf.js
module.exports = function(config) {
config.set({
reporters: ['nested']
});
};
```You can pass list of reporters as a CLI argument too:
```bash
karma start --reporters nested
```## Optional Configuration
### Default values
```js
// karma.conf.js
module.exports = function(config) {
config.set({
nestedReporter: {
color: {
should: 'red',
browser: 'yellow'
},
icon: {
failure: '✘ ',
indent: 'ட ',
browser: ''
}
}
});
};
```### Colors
This reporter will output in color if `colors: true` is present in your Karma configuration.
Colors can be optionally overridden with any of the values defined by
[chalk's colors and styles](https://github.com/chalk/chalk).### Icons
If the **✘** for example isn't your thing, or it doesn't display in your Terminal, this and the
other icons can be substituted for others.## The Karma Test Runner
For more information on Karma see the [homepage](http://karma-runner.github.com).