From 1aa64613b233b0435c87d428c94f753e33acbf84 Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Mon, 13 Jun 2016 16:38:48 +0200 Subject: [PATCH] Add coverage --- .gitignore | 1 + .travis.yml | 1 + README.md | 1 + package.json | 5 ++++- 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index fe5023a..22f2400 100755 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ nbproject test.js testApp coverage +.nyc_output ############################ diff --git a/.travis.yml b/.travis.yml index 3615d09..5528aab 100755 --- a/.travis.yml +++ b/.travis.yml @@ -6,3 +6,4 @@ node_js: - "0.12" - "0.10" - "iojs" +after_success: npm run coveralls diff --git a/README.md b/README.md index 76c3e04..d8f653c 100755 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ ![Last version](https://img.shields.io/github/tag/achohq/acho.svg?style=flat-square) [![Build Status](http://img.shields.io/travis/achohq/acho/master.svg?style=flat-square)](https://travis-ci.org/achohq/acho) +[![Coverage Status](https://img.shields.io/coveralls/achohq/acho.svg?style=flat-square)](https://coveralls.io/github/achohq/acho) [![Dependency status](http://img.shields.io/david/achohq/acho.svg?style=flat-square)](https://david-dm.org/achohq/acho) [![Dev Dependencies Status](http://img.shields.io/david/dev/achohq/acho.svg?style=flat-square)](https://david-dm.org/achohq/acho#info=devDependencies) [![NPM Status](http://img.shields.io/npm/dm/acho.svg?style=flat-square)](https://www.npmjs.org/package/acho) diff --git a/package.json b/package.json index fd758e8..bb9640c 100644 --- a/package.json +++ b/package.json @@ -37,12 +37,14 @@ "browserify": "latest", "coffeeify": "latest", "date-utils": "latest", + "coveralls": "latest", "git-dirty": "latest", "gulp": "latest", "gulp-header": "latest", "gulp-uglify": "latest", "gulp-util": "latest", "mocha": "latest", + "nyc": "latest", "set-dateout": "latest", "should": "latest", "standard": "latest", @@ -57,7 +59,8 @@ "clean": "rm -rf node_modules", "lint": "standard lib", "pretest": "npm run lint", - "test": "mocha" + "test": "nyc mocha", + "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "license": "MIT" }