Skip to content

Commit

Permalink
fix: Improve Cucumber JSON report merging (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Muchychka committed Dec 9, 2017
1 parent 357909e commit e14123a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cucumber-api.js
Expand Up @@ -159,8 +159,10 @@ module.exports = class CucumberAPI {
try {
const report = JSON.parse(yield fs.readFile(reports[i]))
sumReport = sumReport.concat(report)
} catch (e) {}
try {
yield fs.unlink(reports[i])
} catch(e) {}
} catch (e) {}
}
yield fs.writeFile(target, JSON.stringify(sumReport, null, 2))
}
Expand Down

0 comments on commit e14123a

Please sign in to comment.