# karma-nicer-reporter

> A nicer reporter for Karma

Latest version **1.1.0** (published 2016-03-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install karma-nicer-reporter
pnpm add karma-nicer-reporter
yarn add karma-nicer-reporter
bun add karma-nicer-reporter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2016-03-15 |
| First published | 2016-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Andrew Buchan |
| Maintainers | andyhasit |
| Keywords | karma, reporter, nicer |

## Links

- npm: https://www.npmjs.com/package/karma-nicer-reporter
- Repository: https://github.com/andyhasit/karma-nicer-reporter
- Homepage: https://github.com/andyhasit/karma-nicer-reporter#readme
- Issues: https://github.com/andyhasit/karma-nicer-reporter/issues
- npm.io page: https://npm.io/package/karma-nicer-reporter

## Dependencies (1)

- [chalk](https://npm.io/package/chalk.md) ^1.1.1

## Recent versions

- 1.1.0 (latest) — 2016-03-15
- 1.0.0 — 2016-03-15

## README

A nicer reporter for [Karma](http://karma-runner.github.io/0.13/index.html).

#What is this?

A __"nicer"__ reporter for [karma test runner](http://karma-runner.github.io/0.13/index.html) designed to show you what you need to know at a glance:

  - Only prints details for failed tests
  - Color-coded summary passed/failed/skipped per suite
  - Shortens URLs of files in error message print out

### Example screenshot

<p align="center">
  <img src="screenshots/screen.jpg" width="80%"/>
</p>

(Taken from ConEmu on Windows)

#Installation

    npm install karma-nicer-reporter --save-dev
    
#Usage

In your karma configuration file include __nicer__ as a (or the) reporter.

    ...
    reporters: ['nicer'],
    ...
    
#Configuration

Adding a __nicerReporter__ entry in your karma configuration file, you can override the default colors (which come from [chalk](https://github.com/chalk/chalk)).

    ...
    nicerReporter : {
      defaulColor: 'cyan',
      successColor: 'green',
      failColor: 'red',
      skipColor: 'yellow',
      errorLogColor: 'white'
    }
    ...


#Development

There is an example __karma.conf.js__ and some example specs you can run to see the output. These are best run using:

    gulp test
    
Which overwrites __index.js__ in the __node_modules__ folder before running __karma start__.

Pull requests welcome.

#Roadmap

One feature missing is times for individual tests, which isn't there because we don't print individual tests unless they fail. Perhaps it could be included as a second runner.

Also, this has only been tested with:

    autoWatch: false,
    singleRun: true,

And not in any CI enviroment.

#Licence

MIT

---
_Source: https://npm.io/package/karma-nicer-reporter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
