@wdio/allure-reporter 8.29.1 → 8.29.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  WDIO Allure Reporter
2
2
  ====================
3
3
 
4
- > A WebdriverIO reporter plugin to create [Allure Test Reports](https://docs.qameta.io/allure-report/).
4
+ > A WebdriverIO reporter plugin to create [Allure Test Reports](https://allurereport.org/docs/webdriverio/).
5
5
 
6
6
  ![Allure Reporter Example](/img/allure.png)
7
7
 
@@ -165,7 +165,7 @@ Feature: Test user role
165
165
 
166
166
  ## Displaying the report
167
167
 
168
- The results can be consumed by any of the [reporting tools](https://docs.qameta.io/allure#_reporting) offered by Allure. For example:
168
+ The results can be consumed by any of the [reporting tools](https://allurereport.org/) offered by Allure. For example:
169
169
 
170
170
  ### Command-line
171
171
 
@@ -219,7 +219,7 @@ export const config = {
219
219
 
220
220
  ### Jenkins
221
221
 
222
- Install and configure the [Allure Jenkins plugin](https://docs.qameta.io/allure#_jenkins)
222
+ Install and configure the [Allure Jenkins plugin](https://allurereport.org/docs/integrations-jenkins/)
223
223
 
224
224
  ## Add Screenshots
225
225
 
@@ -2,7 +2,7 @@
2
2
  import type { SuiteStats, HookStats, RunnerStats, TestStats, BeforeCommandArgs, AfterCommandArgs } from '@wdio/reporter';
3
3
  import WDIOReporter from '@wdio/reporter';
4
4
  import type { MetadataMessage, AllureStep } from 'allure-js-commons';
5
- import { AllureGroup, AllureTest, Status as AllureStatus, ContentType } from 'allure-js-commons';
5
+ import { AllureGroup, AllureTest, Status as AllureStatus, Stage, ContentType } from 'allure-js-commons';
6
6
  import { addFeature, addLink, addOwner, addEpic, addSuite, addSubSuite, addParentSuite, addTag, addLabel, addSeverity, addIssue, addTestId, addStory, addAllureId, addDescription, addAttachment, startStep, endStep, addStep, addArgument, step } from './common/api.js';
7
7
  import { AllureReporterState } from './state.js';
8
8
  import type { AddAttachmentEventArgs, AddDescriptionEventArgs, AddFeatureEventArgs, AddIssueEventArgs, AddLabelEventArgs, AddSeverityEventArgs, AddEpicEventArgs, AddOwnerEventArgs, AddParentSuiteEventArgs, AddSubSuiteEventArgs, AddLinkEventArgs, AddAllureIdEventArgs, AddSuiteEventArgs, AddTagEventArgs, AddStoryEventArgs, AddTestIdEventArgs, AllureReporterOptions } from './types.js';
@@ -25,7 +25,7 @@ export default class AllureReporter extends WDIOReporter {
25
25
  _endSuite(): void;
26
26
  _startTest(testTitle: string, cid?: string): void;
27
27
  _skipTest(): void;
28
- _endTest(status: AllureStatus, error?: Error): void;
28
+ _endTest(status: AllureStatus, error?: Error, stage?: Stage): void;
29
29
  _startStep(testTitle: string): void;
30
30
  setTestParameters(cid?: string): void;
31
31
  registerListeners(): void;
@@ -34,6 +34,7 @@ export default class AllureReporter extends WDIOReporter {
34
34
  onSuiteEnd(suite: SuiteStats): void;
35
35
  onTestStart(test: TestStats | HookStats): void;
36
36
  onTestPass(): void;
37
+ onTestRetry(test: TestStats): void;
37
38
  onTestFail(test: TestStats | HookStats): void;
38
39
  onTestSkip(test: TestStats): void;
39
40
  onBeforeCommand(command: BeforeCommandArgs): void;
@@ -1 +1 @@
1
- {"version":3,"file":"reporter.d.ts","sourceRoot":"","sources":["../src/reporter.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EACR,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,iBAAiB,EAChE,gBAAgB,EACnB,MAAM,gBAAgB,CAAA;AACvB,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAEzC,OAAO,KAAK,EAAS,eAAe,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC3E,OAAO,EACY,WAAW,EAAE,UAAU,EAAE,MAAM,IAAI,YAAY,EACpD,WAAW,EACxB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACH,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,cAA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,CAAC,UAAU,oBAAa;IAC9B,MAAM,CAAC,OAAO,iBAAU;IACxB,MAAM,CAAC,OAAO,iBAAU;IACxB,MAAM,CAAC,QAAQ,kBAAW;IAC1B,MAAM,CAAC,MAAM,gBAAS;IACtB,MAAM,CAAC,QAAQ,kBAAW;IAC1B,MAAM,CAAC,WAAW,qBAAc;IAChC,MAAM,CAAC,QAAQ,kBAAW;IAC1B,MAAM,CAAC,QAAQ,kBAAW;IAC1B,MAAM,CAAC,WAAW,qBAAc;IAChC,MAAM,CAAC,cAAc,wBAAiB;IACtC,MAAM,CAAC,SAAS,mBAAY;IAC5B,MAAM,CAAC,QAAQ,kBAAW;IAC1B,MAAM,CAAC,cAAc,wBAAiB;IACtC,MAAM,CAAC,aAAa,uBAAgB;IACpC,MAAM,CAAC,SAAS,mBAAY;IAC5B,MAAM,CAAC,OAAO,iBAAU;IACxB,MAAM,CAAC,OAAO,iBAAU;IACxB,MAAM,CAAC,WAAW,qBAAc;IAChC,MAAM,CAAC,WAAW,qBAAc;IAChC,MAAM,CAAC,IAAI,cAAO;CACrB"}
package/build/reporter.js CHANGED
@@ -81,6 +81,9 @@ export default class AllureReporter extends WDIOReporter {
81
81
  }
82
82
  while (this._state.currentAllureTestOrStep) {
83
83
  const currentTest = this._state.pop();
84
+ const isAnyStepFailed = currentTest.wrappedItem.steps.some((step) => step.status === AllureStatus.FAILED);
85
+ currentTest.stage = Stage.FINISHED;
86
+ currentTest.status = isAnyStepFailed ? AllureStatus.FAILED : AllureStatus.PASSED;
84
87
  if (currentTest instanceof AllureTest) {
85
88
  setAllureIds(currentTest, this._state.currentSuite);
86
89
  currentTest.endTest();
@@ -113,12 +116,12 @@ export default class AllureReporter extends WDIOReporter {
113
116
  currentTest.endStep();
114
117
  }
115
118
  }
116
- _endTest(status, error) {
119
+ _endTest(status, error, stage) {
117
120
  if (!this._state.currentAllureTestOrStep) {
118
121
  return;
119
122
  }
120
123
  const currentSpec = this._state.pop();
121
- currentSpec.stage = Stage.FINISHED;
124
+ currentSpec.stage = stage ?? Stage.FINISHED;
122
125
  currentSpec.status = status;
123
126
  if (error) {
124
127
  currentSpec.detailsMessage = error.message;
@@ -256,36 +259,21 @@ export default class AllureReporter extends WDIOReporter {
256
259
  // A scenario is it skipped if every steps are skipped and hooks are passed or skipped
257
260
  const isSkipped = suite.tests.every(item => [AllureStatus.SKIPPED].includes(item.state)) && suite.hooks.every(item => [AllureStatus.PASSED, AllureStatus.SKIPPED].includes(item.state));
258
261
  if (isSkipped) {
259
- const currentTest = this._state.pop();
260
- currentTest.status = AllureStatus.SKIPPED;
261
- currentTest.stage = Stage.PENDING;
262
- setAllureIds(currentTest, this._state.currentSuite);
263
- currentTest.endTest();
262
+ this._endTest(AllureStatus.SKIPPED, undefined, Stage.PENDING);
264
263
  return;
265
264
  }
266
265
  const isFailed = suiteChildren.find(item => item.state === AllureStatus.FAILED);
267
266
  if (isFailed) {
268
- const currentTest = this._state.pop();
269
- currentTest.status = getTestStatus(isFailed);
270
- currentTest.stage = Stage.FINISHED;
267
+ const testStatus = getTestStatus(isFailed);
271
268
  const error = getErrorFromFailedTest(isFailed);
272
- if (error) {
273
- currentTest.detailsMessage = error.message;
274
- currentTest.detailsTrace = error.stack;
275
- }
276
- setAllureIds(currentTest, this._state.currentSuite);
277
- currentTest.endTest();
269
+ this._endTest(testStatus, error);
278
270
  return;
279
271
  }
280
272
  const isPassed = suiteChildren.every(item => item.state === AllureStatus.PASSED);
281
273
  // A scenario is it passed if certain steps are passed and all other are skipped and every hooks are passed or skipped
282
274
  const isPartiallySkipped = suiteChildren.every(item => [AllureStatus.PASSED, AllureStatus.SKIPPED].includes(item.state));
283
275
  if (isPassed || isPartiallySkipped) {
284
- const currentTest = this._state.pop();
285
- currentTest.status = AllureStatus.PASSED;
286
- currentTest.stage = Stage.FINISHED;
287
- setAllureIds(currentTest, this._state.currentSuite);
288
- currentTest.endTest();
276
+ this._endTest(AllureStatus.PASSED);
289
277
  return;
290
278
  }
291
279
  // Only close passing and skipped tests because
@@ -313,6 +301,11 @@ export default class AllureReporter extends WDIOReporter {
313
301
  this.attachLogs();
314
302
  this._endTest(AllureStatus.PASSED);
315
303
  }
304
+ onTestRetry(test) {
305
+ this.attachLogs();
306
+ const status = getTestStatus(test, this._config);
307
+ this._endTest(status, getErrorFromFailedTest(test));
308
+ }
316
309
  onTestFail(test) {
317
310
  const { useCucumberStepReporter } = this._options;
318
311
  if (useCucumberStepReporter) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/allure-reporter",
3
- "version": "8.29.1",
3
+ "version": "8.29.3",
4
4
  "description": "A WebdriverIO reporter plugin to create Allure Test Reports",
5
5
  "author": "Boris Osipov <osipov.boris@gmail.com>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-allure-reporter",
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "d434fcf0aaaa9d835789c4c335d319f94a899687"
52
+ "gitHead": "4c6433be548950dc6ccf0efff77507dfa2f0b321"
53
53
  }