From d216dd89bd92b2e9a0032f567a7a13d74d35e1d2 Mon Sep 17 00:00:00 2001 From: "Elf M. Sternberg" Date: Tue, 10 Jul 2012 11:29:21 -0700 Subject: [PATCH] Trying xUnit next... --- grunt.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/grunt.js b/grunt.js index 0c9d54a..4dd557f 100644 --- a/grunt.js +++ b/grunt.js @@ -175,7 +175,7 @@ module.exports = function(grunt) { grunt.registerHelper('mocha', function(command, test, done) { var args = { cmd: 'mocha', - args: ['--compilers', 'coffee:coffee-script', '-R', 'tap', '-C', test] + args: ['--compilers', 'coffee:coffee-script', '-R', 'xunit', '-C', test] }; grunt.utils.spawn(args, function(err, result) { @@ -184,7 +184,7 @@ module.exports = function(grunt) { done(); return; } - fs.appendFileSync('tmp/results.dot', result.stdout); + fs.appendFileSync('tmp/results.xml', result.stdout); done(); }); }); @@ -197,7 +197,7 @@ module.exports = function(grunt) { sources.sort(); grunt.file.mkdir('tmp'); - fs.writeFileSync('tmp/results.dot', ''); + fs.writeFileSync('tmp/results.xml', ''); async.forEachSeries( sources, function(path, cb) {