0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-30 22:34:10 -05:00

Add istanbul unit testing coverage

This commit is contained in:
Juan Picado @jotadeveloper 2017-02-04 00:29:34 +01:00
parent 6bbeff6d05
commit 0470a02b2f
2 changed files with 17 additions and 7 deletions

10
.gitignore vendored
View file

@ -5,11 +5,19 @@ sinopia-*.tgz
### ###
!bin/sinopia !bin/sinopia
test-storage* test-storage*
node_modules node_modules
# Istanbul
coverage/
.nyc*
# Visual Studio Code # Visual Studio Code
.vscode/* .vscode/*
.jscsrc .jscsrc
.jshintrc .jshintrc
jsconfig.json jsconfig.json
# Yarn
yarn*

View file

@ -43,20 +43,21 @@
"unix-crypt-td-js": "^1.0.0" "unix-crypt-td-js": "^1.0.0"
}, },
"devDependencies": { "devDependencies": {
"rimraf": "^2.5.2",
"bluebird": "^3.3.5", "bluebird": "^3.3.5",
"mocha": "^2.4.5",
"eslint": "^2.9.0",
"browserify": "^13.0.0", "browserify": "^13.0.0",
"browserify-handlebars": "^1.0.0", "browserify-handlebars": "^1.0.0",
"eslint": "^2.9.0",
"grunt": "^1.0.1", "grunt": "^1.0.1",
"grunt-cli": "^1.2.0",
"grunt-browserify": "^5.0.0", "grunt-browserify": "^5.0.0",
"grunt-cli": "^1.2.0",
"grunt-contrib-less": "^1.3.0", "grunt-contrib-less": "^1.3.0",
"grunt-contrib-watch": "^1.0.0", "grunt-contrib-watch": "^1.0.0",
"unopinionate": "^0.0.4", "mocha": "^2.4.5",
"nyc": "^10.1.2",
"onclick": "^0.1.0", "onclick": "^0.1.0",
"transition-complete": "^0.0.2" "rimraf": "^2.5.2",
"transition-complete": "^0.0.2",
"unopinionate": "^0.0.4"
}, },
"keywords": [ "keywords": [
"private", "private",
@ -69,6 +70,7 @@
], ],
"scripts": { "scripts": {
"test": "eslint . && mocha ./test/functional ./test/unit", "test": "eslint . && mocha ./test/functional ./test/unit",
"test:coverage": "nyc --reporter=html --reporter=text mocha -R spec ./test/functional ./test/unit",
"test-travis": "eslint . && mocha -R spec ./test/functional ./test/unit", "test-travis": "eslint . && mocha -R spec ./test/functional ./test/unit",
"test-only": "mocha ./test/functional ./test/unit", "test-only": "mocha ./test/functional ./test/unit",
"lint": "eslint ." "lint": "eslint ."