Skip to content

Commit

Permalink
Writing report during tests run
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkNaumenko committed Jun 25, 2018
1 parent 2a4f59d commit 91ba486
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/parallel_cucumber/formatters/formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ var Formatter = function(options) {
};

self._write = function(data) {
self._out.write(data, 'utf8');
FS.writeFile(options.outFilePath, data, function (err) {
if (err) {
throw err;
}
});
};

self.end = function(callback) {
Expand Down
1 change: 1 addition & 0 deletions lib/parallel_cucumber/formatters/json_formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var JsonFormatter = function(options) {
Debug('New feature');
self._features.push(currentFeature);
}
self._write(JSON.stringify(self._features));
};

self.end = function(callback) {
Expand Down

0 comments on commit 91ba486

Please sign in to comment.