Makefile with testing targets

This commit is contained in:
Raul Ochoa 2015-05-12 18:33:57 +02:00
parent d108225001
commit b6f71eb180
2 changed files with 12 additions and 1 deletions

View File

@ -6,3 +6,14 @@ clean:
check:
npm test
test:
test/run_tests.sh ${RUNTESTFLAGS} test/unit/*.js test/unit/model/*.js test/acceptance/*.js test/acceptance/export/*.js
test-unit:
test/run_tests.sh ${RUNTESTFLAGS} test/unit/*.js test/unit/model/*.js
test-acceptance:
test/run_tests.sh ${RUNTESTFLAGS} test/acceptance/*.js test/acceptance/export/*.js
.PHONY: test

View File

@ -37,7 +37,7 @@
"libxmljs": "~0.8.1"
},
"scripts": {
"test": "test/run_tests.sh ${RUNTESTFLAGS} test/unit/*.js test/unit/model/*.js test/acceptance/*.js test/acceptance/export/*.js"
"test": "make test"
},
"engines": {
"node": ">=0.8 <0.11",