wdio-reportportal-reporter
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -93,3 +93,7 @@ "use strict"; | ||
const parent = this.getParent(suite.cid); | ||
const { promise } = this.client.finishTestItem(parent.id, {}); | ||
const finishSuiteObj = { status: constants_1.STATUS.PASSED }; | ||
if (this.startedTests[suite.cid].length === 0) { | ||
finishSuiteObj.status = constants_1.STATUS.FAILED; | ||
} | ||
const { promise } = this.client.finishTestItem(parent.id, finishSuiteObj); | ||
utils_1.promiseErrorHandler(promise); | ||
@@ -218,3 +222,6 @@ this.clearParent(suite.cid); | ||
runnerEnd(runner) { | ||
delete this.startedTests[runner.cid]; | ||
const clear = (cid) => { | ||
delete this.startedTests[cid]; | ||
}; | ||
setTimeout(clear.bind(this), 5000, runner.cid); | ||
} | ||
@@ -320,2 +327,7 @@ sendLogToTest({ cid, test, level, message }) { | ||
} | ||
// tslint:disable-next-line | ||
constructor(issue_type); | ||
{ | ||
this.issue_type = issue_type; | ||
} | ||
module.exports = ReportPortalReporter; |
@@ -111,3 +111,7 @@ import { EventEmitter } from "events"; | ||
const parent = this.getParent(suite.cid); | ||
const { promise } = this.client.finishTestItem(parent.id, {}); | ||
const finishSuiteObj = {status: STATUS.PASSED}; | ||
if (this.startedTests[suite.cid].length === 0) { | ||
finishSuiteObj.status = STATUS.FAILED; | ||
} | ||
const { promise } = this.client.finishTestItem(parent.id, finishSuiteObj); | ||
promiseErrorHandler(promise); | ||
@@ -260,3 +264,6 @@ this.clearParent(suite.cid); | ||
public runnerEnd(runner) { | ||
delete this.startedTests[runner.cid]; | ||
const clear = (cid) => { | ||
delete this.startedTests[cid]; | ||
}; | ||
setTimeout(clear.bind(this), 5000, runner.cid); | ||
} | ||
@@ -263,0 +270,0 @@ |
{ | ||
"name": "wdio-reportportal-reporter", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "A WebdriverIO plugin. Report results to Report Portal.", | ||
@@ -5,0 +5,0 @@ "main": "build/reporter.js", |
@@ -15,3 +15,3 @@ WDIO Report Portal Reporter | ||
"devDependencies": { | ||
"wdio-reportportal-reporter": "~0.0.14" | ||
"wdio-reportportal-reporter": "~0.0.15" | ||
} | ||
@@ -18,0 +18,0 @@ } |
60194
37
1404