Permalink
Browse files

output dir

  • Loading branch information...
1 parent 89b993e commit 112f2fcd3b6b00ca34d864c65231bc87edbbc49b @tereska tereska committed Apr 6, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −1 lib/jasmine-node/cli.js
  2. +1 −0 lib/jasmine-node/index.js
  3. +1 −1 lib/jasmine-node/jscoverage.js
@@ -26,7 +26,8 @@ var useHelpers = true;
var forceExit = false;
var jsCoverage = {
- report: false
+ report: false,
+ output: null
};
var junitreport = {
@@ -72,6 +72,7 @@ jasmine.executeSpecsInFolder = function(folder,
jsCoverageConfig){
if(jsCoverageConfig.report){
+ jsCoverageConfig.output = junitreport.savePath;
var JsCoverage = require('./jscoverage').JsCoverage,
jsCoverage = new JsCoverage(jsCoverageConfig),
onComplete = done,
@@ -107,7 +107,7 @@ JsCoverage.prototype.coverageReport = function(cb) {
console.log('writing code coverage analysis...');
- var resultsPath = '/tmp/jscoverage.json';
+ var resultsPath = this._config.output;
try{
var fs=require('fs');
fs.writeFileSync(resultsPath, JSON.stringify(rv), 'utf8');

0 comments on commit 112f2fc

Please sign in to comment.