webdriverio / webdriverio

Next-gen browser and mobile automation test framework for Node.js
http://webdriver.io
MIT License
8.87k stars 2.46k forks source link

[🐛 Bug]: <Scenarios with duplicated steps not failing> #13054

Open josiasvfigueredo1985 opened 2 weeks ago

josiasvfigueredo1985 commented 2 weeks ago

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

8.35.1

Node.js Version

10.9.2

Mode

WDIO Testrunner

Which capabilities are you using?

browser: chrome-124.0.6367.118
windows 11

What happened?

Running tests with Cucumber, a duplicated step definition is causing the following behavior on Allure Report:

image

What is your expected behavior?

Catch the error and print the cause in the log file, example: "Test has failed due following duplicated step! 'Step:I add attribute on xxxx Sidebar'"

How to reproduce the bug.

  1. Create a project with cucumber and Allure
  2. Create 2 step definitions with the same name
  3. Create 2 scenarios at least
  4. Add the duplicated steps on scenarios
  5. Run all the scenarios using the duplicated steps
  6. Run allure command to generate the report

Relevant log output

N/A

Code of Conduct

Is there an existing issue for this?

wdio-bot commented 2 weeks ago

Thanks for reporting!

We greatly appreciate any contributions that help resolve the bug. While we understand that active contributors have their own priorities, we kindly request your assistance if you rely on this bug being fixed. We encourage you to take a look at our contribution guidelines or join our friendly Discord development server, where you can ask any questions you may have. Thank you for your support, and cheers!