Skip to content

Commit

Permalink
Fix #16 Don't try to finish incorrect items
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Osipov <[email protected]>
  • Loading branch information
BorisOsipov committed Oct 9, 2018
1 parent d6e4e23 commit 5b4e91a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ class ReportPortalReporter extends EventEmitter {

public testFinished(test, status, issue?) {
const parent = this.getParent(test.cid);
if (parent && parent.type !== TYPE.STEP) {
return;
}

const finishTestObj = new TestEndObj(status, issue);
if (status === STATUS.FAILED) {
let message = `Message: ${test.err.message}\n`;
Expand Down

0 comments on commit 5b4e91a

Please sign in to comment.