Skip to content

Commit

Permalink
Merge pull request #17 from BorisOsipov/fix_hook_reportin
Browse files Browse the repository at this point in the history
Fix #16 Don't try to finish incorrect items
  • Loading branch information
BorisOsipov authored Oct 9, 2018
2 parents 6332d9b + e7f39ad commit e850c61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ class ReportPortalReporter extends EventEmitter {

testFinished(test, status, issue) {
const parent = this.getParent(test.cid);
if (parent && parent.type !== entityType.TEST) {
return;
}

const finishTestObj = { status, issue };

if (status === FAILED) {
Expand Down

0 comments on commit e850c61

Please sign in to comment.