Add code coverage metrics

This commit is contained in:
Francis Gulotta 2016-06-01 13:52:43 -04:00
parent ac8ff36a2e
commit f707fbbaef
6 changed files with 10 additions and 1 deletions

1
.gitignore vendored
View file

@ -7,3 +7,4 @@ npm-debug.log
gyp-mac-tool
.node_pre_gyprc
/.idea
.nyc_output

View file

@ -20,3 +20,4 @@ npm-debug.log
gyp-mac-tool
.node_pre_gyprc
/.idea
.nyc_output

View file

@ -73,6 +73,7 @@ install:
script:
# test our module
- npm run lint
- node ./
- npm test

View file

@ -4,6 +4,7 @@
[![Build status](https://ci.appveyor.com/api/projects/status/u6xe3iao2crd7akn/branch/master?svg=true)](https://ci.appveyor.com/project/j5js/node-serialport/branch/master)
[![Gitter chat](https://badges.gitter.im/EmergingTechnologyAdvisors/node-serialport.svg)](https://gitter.im/EmergingTechnologyAdvisors/node-serialport)
[![Dependency Status](https://david-dm.org/EmergingTechnologyAdvisors/node-serialport.svg)](https://david-dm.org/EmergingTechnologyAdvisors/node-serialport)
[![Coverage Status](https://coveralls.io/repos/github/EmergingTechnologyAdvisors/node-serialport/badge.svg?branch=master)](https://coveralls.io/github/EmergingTechnologyAdvisors/node-serialport?branch=master)
For support you can open a [github issue](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/new), for discussions, designs, and clarifications, we recommend you join our [Gitter Chat room](https://gitter.im/EmergingTechnologyAdvisors/node-serialport). We have two related projects [Browser Serialport](https://github.com/garrows/browser-serialport) "just like Node Serialport but for browser apps", and [Serialport Test Piliot](https://github.com/j5js/serialport-test-pilot) which helps us test serialport.

View file

@ -67,6 +67,7 @@ build_script:
- npm install --build-from-source --msvs_version=2013
test_script:
- npm run lint
- node ./
- npm test
- IF %PUBLISH_BINARY% == 1 (node-pre-gyp package 2>&1)

View file

@ -63,6 +63,7 @@
"devDependencies": {
"chai": "^3.5.0",
"chai-subset": "^1.2.2",
"coveralls": "^2.11.9",
"eslint-config-standard": "^5.1.0",
"eslint-plugin-promise": "^1.1.0",
"eslint-plugin-standard": "^1.3.2",
@ -71,6 +72,7 @@
"gruntify-eslint": "^2.0.0",
"mocha": "^2.4.5",
"node-pre-gyp-github": "^1.1.2",
"nyc": "^6.4.4",
"sandboxed-module": "^2.0.3",
"sinon": "^1.17.3",
"sinon-chai": "^2.8.0",
@ -94,7 +96,9 @@
"stress": "mocha --no-timeouts test/arduinoTest/stress.js",
"integration": "mocha test/arduinoTest/integration.js test/integration-lite.js",
"grunt": "grunt",
"test": "grunt --verbose",
"lint": "grunt --verbose lint",
"test": "nyc grunt --verbose test",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"valgrind": "valgrind --leak-check=full --show-possibly-lost=no node --expose-gc --trace-gc node_modules/.bin/grunt test"
},
"gypfile": true