karma-mocha-reporter
Advanced tools
Comparing version 0.2.7 to 0.2.8
11
index.js
'use strict'; | ||
var chalk = require('chalk'); | ||
var logSymbols = require('log-symbols'); | ||
@@ -227,3 +228,3 @@ /** | ||
item.failed = item.failed || []; | ||
item.name = (result.success ? '✓ ' : '✗ ') + item.name; | ||
item.name = (result.success ? logSymbols.success : logSymbols.error) + ' ' + item.name; | ||
item.success = result.success; | ||
@@ -295,14 +296,14 @@ item.skipped = result.skipped; | ||
self.write(chalk.underline.bold('SUMMARY:') + '\n'); | ||
self.write(chalk.green('✓ ' + results.success + ' tests completed\n')); | ||
self.write(chalk.green(logSymbols.success + ' ' + results.success + ' tests completed\n')); | ||
if (self.numberOfSkippedTests > 0) { | ||
self.write(chalk.grey('- ' + self.numberOfSkippedTests + ' tests skipped\n')); | ||
self.write(chalk.grey(logSymbols.info + ' ' + self.numberOfSkippedTests + ' tests skipped\n')); | ||
} | ||
if (self.numberOfSlowTests > 0) { | ||
self.write(chalk.yellow('- ' + self.numberOfSlowTests + ' tests slow\n')); | ||
self.write(chalk.yellow(logSymbols.warning + ' ' + self.numberOfSlowTests + ' tests slow\n')); | ||
} | ||
if (results.failed) { | ||
self.write(chalk.red('✗ ' + results.failed + ' tests failed\n')); | ||
self.write(chalk.red(logSymbols.error + ' ' + results.failed + ' tests failed\n')); | ||
self.write(chalk.underline.bold('\nFAILED TESTS:') + '\n'); | ||
@@ -309,0 +310,0 @@ |
{ | ||
"name": "karma-mocha-reporter", | ||
"description": "Karma reporter with mocha style logging.", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"homepage": "http://www.litixsoft.de/modules-karmamochareporter", | ||
@@ -56,4 +56,5 @@ "author": "Litixsoft GmbH <info@litixsoft.de> (http://www.litixsoft.de)", | ||
"dependencies": { | ||
"chalk": "^0.5.0" | ||
"chalk": "^0.5.1", | ||
"log-symbols": "^1.0.0" | ||
} | ||
} |
@@ -5,3 +5,6 @@ # karma-mocha-reporter | ||
> [![Build Status](https://travis-ci.org/litixsoft/karma-mocha-reporter.svg?branch=master)](https://travis-ci.org/litixsoft/karma-mocha-reporter) [![david-dm](https://david-dm.org/litixsoft/karma-mocha-reporter.svg)](https://david-dm.org/litixsoft/karma-mocha-reporter/) [![david-dm](https://david-dm.org/litixsoft/karma-mocha-reporter/dev-status.svg)](https://david-dm.org/litixsoft/karma-mocha-reporter#info=devDependencies&view=table) | ||
> [![NPM version](https://badge.fury.io/js/karma-mocha-reporter.svg)](http://badge.fury.io/js/karma-mocha-reporter) | ||
[![Build Status](https://secure.travis-ci.org/litixsoft/karma-mocha-reporter.svg?branch=master)](https://travis-ci.org/litixsoft/karma-mocha-reporter) | ||
[![david-dm](https://david-dm.org/litixsoft/karma-mocha-reporter.svg?theme=shields.io)](https://david-dm.org/litixsoft/karma-mocha-reporter/) | ||
[![david-dm](https://david-dm.org/litixsoft/karma-mocha-reporter/dev-status.svg?theme=shields.io)](https://david-dm.org/litixsoft/karma-mocha-reporter#info=devDependencies&view=table) | ||
@@ -23,6 +26,5 @@ ## How does it look like | ||
You can simple do it by: | ||
```bash | ||
npm install karma-mocha-reporter --save-dev | ||
``` | ||
$ npm install karma-mocha-reporter --save-dev | ||
## Configuration | ||
@@ -50,7 +52,9 @@ ```js | ||
You can preview your changes by running: | ||
```bash | ||
grunt demo --force | ||
``` | ||
$ grunt demo --force | ||
## Release History | ||
### v0.2.8 | ||
* add module log-symbols for printing symbols to the console | ||
### v0.2.7 | ||
@@ -57,0 +61,0 @@ * report totalTime and netTime the same way "dots" and "progress" reporters do |
16625
266
109
3
+ Addedlog-symbols@^1.0.0
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedlog-symbols@1.0.2(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
Updatedchalk@^0.5.1