From fd7f89019ab3863f0bdc2dcf6b03edbf5cc1918d Mon Sep 17 00:00:00 2001 From: Kononnable Date: Wed, 3 May 2017 22:05:49 +0200 Subject: [PATCH] codecov added --- .gitignore | 4 +++- README.md | 1 + package.json | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b31cff2..4c1fc84 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,6 @@ ormconfig.json typings/ **/*.js **/*.js.map -output/**/*.* \ No newline at end of file +output/**/*.* +.nyc_output/ +coverage/ \ No newline at end of file diff --git a/README.md b/README.md index 9224462..f2e4d41 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # typeorm-model-generator [![Build Status](https://travis-ci.org/Kononnable/typeorm-model-generator.svg?branch=master)](https://travis-ci.org/Kononnable/typeorm-model-generator) [![npm version](https://badge.fury.io/js/typeorm-model-generator.svg)](https://badge.fury.io/js/typeorm-model-generator) +[![codecov](https://codecov.io/gh/Kononnable/typeorm-model-generator/branch/master/graph/badge.svg)](https://codecov.io/gh/Kononnable/typeorm-model-generator) Generates models for TypeORM from existing databases. diff --git a/package.json b/package.json index a5dc65c..ef43e8f 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "typings-install": "typings install", "setup": "npm install && npm run typings-install", "start": "tsc && node ./src/index.js", - "test": "mocha test/**/*.js" + "test": "istanbul cover ./node_modules/mocha/bin/_mocha test/**/*.js -- -R spec", + "posttest": "codecov --file=coverage/lcov.info" }, "repository": { "type": "git", @@ -36,6 +37,8 @@ "@types/sinon": "^2.1.3", "chai": "^3.5.0", "chai-as-promised": "^6.0.0", + "codecov": "^2.1.0", + "istanbul": "^0.4.5", "mocha": "^3.3.0", "sinon": "^2.2.0", "sinon-chai": "^2.10.0",