Make jshint part of npm test

This commit is contained in:
Raul Ochoa 2015-05-13 13:13:16 +02:00
parent 1e493cc36b
commit 513a4e747b
2 changed files with 6 additions and 1 deletions

View File

@ -12,12 +12,17 @@ jshint:
@./node_modules/.bin/jshint app/ test/ app.js
test:
@echo "***tests***"
test/run_tests.sh ${RUNTESTFLAGS} test/unit/*.js test/unit/model/*.js test/acceptance/*.js test/acceptance/export/*.js
test-unit:
@echo "***unit tests***"
test/run_tests.sh ${RUNTESTFLAGS} test/unit/*.js test/unit/model/*.js
test-acceptance:
@echo "***acceptance tests***"
test/run_tests.sh ${RUNTESTFLAGS} test/acceptance/*.js test/acceptance/export/*.js
test-all: jshint test
.PHONY: test

View File

@ -37,7 +37,7 @@
"libxmljs": "~0.8.1"
},
"scripts": {
"test": "make test"
"test": "make test-all"
},
"engines": {
"node": ">=0.8 <0.11",