Skip to content

Fix problem with tests which had been finished before the parent suite finished #12129

Merged
christian-bromann merged 2 commits intowebdriverio:mainfrom
epszaw:unknown-status-for-retries
Jan 30, 2024
Merged

Fix problem with tests which had been finished before the parent suite finished #12129
christian-bromann merged 2 commits intowebdriverio:mainfrom
epszaw:unknown-status-for-retries

Conversation

@epszaw
Copy link
Contributor

@epszaw epszaw commented Jan 30, 2024

Proposed changes

The problem happens, when cucumber feature suite ends before all scenarios and steps finished. In the Allure Report unfinished steps have unknown status (original issue allure-framework/allure-js#826).

The PR solves the problem and simplifies the code by reusing _endTest method when we need to finish the current test or step.

Before

image

After

image

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • I have added proper type definitions for new commands (if appropriate)

Further comments

Reviewers: @webdriverio/project-committers

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice clean up 👍

@christian-bromann christian-bromann added the PR: Bug Fix 🐛 PRs that contain bug fixes label Jan 30, 2024
@christian-bromann christian-bromann merged commit 50959a9 into webdriverio:main Jan 30, 2024
@wdio-bot
Copy link
Contributor

Hey epszaw 👋

Thank you for your contribution to WebdriverIO! Your pull request has been marked as an "Expensable" contribution.
We've sent you an email with further instructions on how to claim your expenses from our development fund. Please
make sure to check your spam folder as well. If you have any questions, feel free to reach out to us at expense@webdriver.io
or in the contributing channel on Discord.

We are looking forward to more contributions from you in the future 🙌

Have a nice day,
The WebdriverIO Team 🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Expensable $25 💸 PR: Bug Fix 🐛 PRs that contain bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants