From a653e0fe7e1752f30a5931b53ea244a4ec840d60 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Thu, 22 Oct 2015 14:25:56 -0700 Subject: [PATCH] Added per-test XML reports for Node tests on Jenkins --- package.json | 1 + tools/run_tests/run_node.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 54efb69b042..1fd0ffb8814 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "jshint": "^2.5.0", "minimist": "^1.1.0", "mocha": "~1.21.0", + "mocha-jenkins-reporter": "^0.1.9", "mustache": "^2.0.0" }, "engines": { diff --git a/tools/run_tests/run_node.sh b/tools/run_tests/run_node.sh index d0a74e7e1ef..fff579fab8e 100755 --- a/tools/run_tests/run_node.sh +++ b/tools/run_tests/run_node.sh @@ -51,5 +51,5 @@ then echo '' > \ ../reports/node_coverage/index.html else - ./node_modules/mocha/bin/mocha --timeout 8000 src/node/test + JUNIT_REPORT_PATH=src/node/reports.xml JUNIT_REPORT_STACK=1 ./node_modules/.bin/mocha --reporter mocha-jenkins-reporter src/node/test || true fi