From 301ee87a4b22ac95db85da8adab6f04da832b639 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Thu, 19 Dec 2013 14:07:51 +0000 Subject: [PATCH] run each jasmine node test separately This is a workaround for the strange error message TypeError: Cannot call method 'getAttribute' of undefined at Object.pzHttpRequest._handleResponse (http://mkws.indexdata.com/pazpar2/js/pz2.js:1018:38) at request.onreadystatechange (http://mkws.indexdata.com/pazpar2/js/pz2.js:939:21) at dispatchEvent (/jenkins/jenkins-varlib/jobs/mkws/workspace/test/node_modules/jsdom/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:570:25) at setState (/jenkins/jenkins-varlib/jobs/mkws/workspace/test/node_modules/jsdom/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:589:14) at IncomingMessage. (/jenkins/jenkins-varlib/jobs/mkws/workspace/test/node_modules/jsdom/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:427:13) at IncomingMessage.EventEmitter.emit (events.js:117:20) at _stream_readable.js:920:16 at process._tickCallback (node.js:415:13) --- test/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/Makefile b/test/Makefile index ec1fd0c..615e323 100644 --- a/test/Makefile +++ b/test/Makefile @@ -9,7 +9,10 @@ distclean: check: - jasmine-node --captureExceptions --forceexit ./spec + for i in ./spec/*.js; do \ + echo "$$i"; \ + jasmine-node --captureExceptions --forceexit $$i; \ + done test: check -- 1.7.10.4