Explicitly writing test results to a file.

This commit is contained in:
Elf M. Sternberg 2012-07-10 11:23:14 -07:00
parent 38e93e9ef4
commit 5661be084a
1 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,7 @@ var path, _und, async;
path = require('path'); path = require('path');
_und = require('underscore'); _und = require('underscore');
async = require('async'); async = require('async');
fs = require('fs');
module.exports = function(grunt) { module.exports = function(grunt) {
@ -183,7 +184,7 @@ module.exports = function(grunt) {
done(); done();
return; return;
} }
console.log(result.stdout); fs.appendFileSync('tmp/results.dot', result.stdout);
done(); done();
}); });
}); });
@ -195,6 +196,8 @@ module.exports = function(grunt) {
dest = grunt.config([this.name, 'dest']); dest = grunt.config([this.name, 'dest']);
sources.sort(); sources.sort();
grunt.file.mkdir('tmp');
fs.writeFileSync('tmp/results.dot', '');
async.forEachSeries( async.forEachSeries(
sources, sources,
function(path, cb) { function(path, cb) {