Skip to content

Commit

Permalink
Merge pull request #84 from vermeeca/absolute_outputFile
Browse files Browse the repository at this point in the history
Handle Absolute outputFile path
  • Loading branch information
dignifiedquire committed Mar 3, 2016
2 parents 28bc4e8 + d5dc808 commit 8cd1730
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ var JUnitReporter = function (baseReporterDecorator, config, logger, helper, for
var writeXmlForBrowser = function (browser) {
var safeBrowserName = browser.name.replace(/ /g, '_')
var newOutputFile
if (outputFile != null) {
if (path.isAbsolute(outputFile)) {
newOutputFile = outputFile
} else if (outputFile != null) {
var dir = useBrowserName ? path.join(outputDir, safeBrowserName)
: outputDir
newOutputFile = path.join(dir, outputFile)
Expand Down

0 comments on commit 8cd1730

Please sign in to comment.