diff --git a/Makefile b/Makefile index 30c8dd8..71448fa 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # docs: $(patsubst %.md,%.html,$(wildcard *.md)) -targets = lists.js reduce.js + all: $(targets) @@ -18,8 +18,10 @@ node_modules: package.json mkdir -p node_modules npm install -test: node_modules - @./node_modules/.bin/mocha --recursive -R xunit test/ > test-reports.xml +test: clean node_modules + @JUNIT_REPORT_PATH=test-reports.xml JUNIT_REPORT_STACK=1 ./node_modules/.bin/mocha \ + --reporter mocha-jenkins-reporter --compilers coffee:coffee-script/register || true +# @node_modules/.bin/mocha clean: - rm -f $(targets) + rm -f report.xml test-reports.xml