Skip to content

Commit

Permalink
fix: save images for last retry in skipped test
Browse files Browse the repository at this point in the history
  • Loading branch information
CatWithApple committed Jan 21, 2019
1 parent 05cd649 commit 3024df8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hermione.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ function prepareImages(hermione, pluginConfig, reportBuilder) {
queue = queue.then(() => failHandler(testResult));
});

hermione.on(hermione.events.TEST_PENDING, (testResult) => {
queue = queue.then(() => failHandler(testResult));
});

hermione.on(hermione.events.RUNNER_END, () => queue.then(resolve, reject));
});
}

0 comments on commit 3024df8

Please sign in to comment.