From b6f71eb18008e7aeb004e0253ca395e6d4dbe37d Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Tue, 12 May 2015 18:33:57 +0200 Subject: [PATCH] Makefile with testing targets --- Makefile | 11 +++++++++++ package.json | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1816f24e..fb3589bc 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/package.json b/package.json index c8504d32..3711ab2a 100644 --- a/package.json +++ b/package.json @@ -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",