Trying xUnit next...

This commit is contained in:
Elf M. Sternberg 2012-07-10 11:29:21 -07:00
parent 5661be084a
commit d216dd89bd
1 changed files with 3 additions and 3 deletions

View File

@ -175,7 +175,7 @@ module.exports = function(grunt) {
grunt.registerHelper('mocha', function(command, test, done) { grunt.registerHelper('mocha', function(command, test, done) {
var args = { var args = {
cmd: 'mocha', 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) { grunt.utils.spawn(args, function(err, result) {
@ -184,7 +184,7 @@ module.exports = function(grunt) {
done(); done();
return; return;
} }
fs.appendFileSync('tmp/results.dot', result.stdout); fs.appendFileSync('tmp/results.xml', result.stdout);
done(); done();
}); });
}); });
@ -197,7 +197,7 @@ module.exports = function(grunt) {
sources.sort(); sources.sort();
grunt.file.mkdir('tmp'); grunt.file.mkdir('tmp');
fs.writeFileSync('tmp/results.dot', ''); fs.writeFileSync('tmp/results.xml', '');
async.forEachSeries( async.forEachSeries(
sources, sources,
function(path, cb) { function(path, cb) {