Naming the generated JUnit files TEST-[name].xml as they were in the old version of the plugin for easier migration where Jenkins is searching for files named in that way.

This commit is contained in:
Kelvin Luck 2013-01-08 14:29:10 +00:00
parent cacf4a82be
commit d224f2c687

View File

@ -214,7 +214,7 @@ module.exports = function(grunt) {
grunt.util._(junitData.consolidatedSuites).each(
function(suites)
{
grunt.file.copy(runners.junit, path.join(options.junit.path, suites[0].name.replace(/[^\w]/g, '') + '-TEST.xml'), {
grunt.file.copy(runners.junit, path.join(options.junit.path, 'TEST-' + suites[0].name.replace(/[^\w]/g, '') + '.xml'), {
process: function(src) {
return grunt.util._.template(
src,
@ -230,7 +230,7 @@ module.exports = function(grunt) {
junitData.suites.forEach(
function(suiteData)
{
grunt.file.copy(runners.junit, path.join(options.junit.path, suiteData.name.replace(/[^\w]/g, '') + '-TEST.xml'), {
grunt.file.copy(runners.junit, path.join(options.junit.path, 'TEST-' + suiteData.name.replace(/[^\w]/g, '') + '.xml'), {
process: function(src) {
return grunt.util._.template(
src,