From 238aad2e0666b5d6f4595818e8ba3c978130d03f Mon Sep 17 00:00:00 2001 From: "Chris O." Date: Mon, 19 May 2014 22:43:40 -0700 Subject: [PATCH] Option to allow specifying a junitTemplate Allow for a customized junitTemplate using options.junit.template. --- tasks/jasmine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/jasmine.js b/tasks/jasmine.js index 8e606ad..800e1db 100644 --- a/tasks/jasmine.js +++ b/tasks/jasmine.js @@ -360,7 +360,7 @@ module.exports = function(grunt) { } function writeJunitXml(testsuites){ - var template = grunt.file.read(junitTemplate); + var template = grunt.file.read(options.junit.template || junitTemplate); if (options.junit.consolidate) { var xmlFile = path.join(options.junit.path, 'TEST-' + testsuites.suite1.name.replace(/[^\w]/g, '') + '.xml'); grunt.file.write(xmlFile, grunt.util._.template(template, { testsuites: _.values(testsuites)}));