From 5c532497c62bb5c08d9bef3f45e94b1a17322edf Mon Sep 17 00:00:00 2001 From: Oleg Shulimov Date: Thu, 24 Feb 2022 18:45:55 +0300 Subject: [PATCH] Fix #27 Pending tests marks suite as failed --- index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/index.js b/index.js index 234bd7c..91f6154 100644 --- a/index.js +++ b/index.js @@ -149,11 +149,7 @@ class WdioTeamcityReporter extends WdioReporter { onSuiteEnd (suiteStats) { const pendingTests = Object.values(suiteStats.tests).filter(test => test.state === 'pending'); pendingTests.forEach(testStat => { - testStat.error = testStat.error || { - message: 'Test is considered as failed, as it is still "pending" on suite end.', - stack: '', - }; - this._m('##teamcity[testFailed name=\'{name}\' message=\'{error}\' details=\'{stack}\' flowId=\'{id}\']', testStat); + this._m('##teamcity[testIgnored name=\'{name}\' message=\'skipped\' flowId=\'{id}\']', testStat); }); this._m('##teamcity[testSuiteFinished name=\'{name}\' flowId=\'{id}\']', suiteStats);