Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another take on bug #4953 #6076

Merged
merged 2 commits into from Nov 16, 2020

Conversation

oversizedhat
Copy link
Contributor

@oversizedhat oversizedhat commented Nov 6, 2020

Proposed changes

Bug fix to #4953, as discussed in #5040

Hard to say if this solves all issues. I have not added any kind of extensive testing of it but it at least looks like it solves our case where we use mocha framework in combo with wdio. Have not tested any other scenarios like when using cucumber.

The "currentTest" addition to the hook seems to have been expected as its is already used (but ignored) in https://github.com/webdriverio/webdriverio/blob/master/packages/wdio-mocha-framework/src/index.js

Types of changes

  • [x ] 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

@jsf-clabot
Copy link

jsf-clabot commented Nov 6, 2020

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ oversizedhat
❌ oversizedhat-bot

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.

I think if this solves the issue for at least Mocha test it is already a step forward. One comment on the implementation.

@BorisOsipov any thoughts?

packages/wdio-allure-reporter/src/index.js Outdated Show resolved Hide resolved
@BorisOsipov
Copy link
Member

@christian-bromann I dont mind.

@christian-bromann
Copy link
Member

@oversizedhat please address the comment above and add a unit test for your changes in the Allure reporter. Let me know if you need and help.

@oversizedhat
Copy link
Contributor Author

cheers @christian-bromann I will take a look into adding some tests

@christian-bromann
Copy link
Member

@oversizedhat the change looks good to me, can you squash all commits into one so that the CLA bot is happy? Cheers!

@oversizedhat
Copy link
Contributor Author

cheers @christian-bromann, will try to wrap it up. Still want to add some kind of test to validate the change too, it was a valid comment.

@oversizedhat
Copy link
Contributor Author

@christian-bromann cleaned it up now and added at least some basic test to validate that there are no test duplicates in the allure report due to hook start. There is room for more testing but its something at least

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.

Awesome, LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Bug Fix 🐛 PRs that contain bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants