Skip to content

Commit

Permalink
fix(reporter): bug creating directory when outputFile specified (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriaan Thomas committed Sep 30, 2015
1 parent 7f0f242 commit 2205f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var JUnitReporter = function (baseReporterDecorator, config, logger, helper, for
}

pendingFileWritings++
helper.mkdirIfNotExists(outputDir, function () {
helper.mkdirIfNotExists(path.dirname(newOutputFile), function () {
fs.writeFile(newOutputFile, xmlToOutput.end({pretty: true}), function (err) {
if (err) {
log.warn('Cannot write JUnit xml\n\t' + err.message)
Expand Down

0 comments on commit 2205f47

Please sign in to comment.