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
Another take on bug #4953 #6076
Conversation
|
There was a problem hiding this 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?
@christian-bromann I dont mind. |
@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. |
cheers @christian-bromann I will take a look into adding some tests |
@oversizedhat the change looks good to me, can you squash all commits into one so that the CLA bot is happy? Cheers! |
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. |
…lure report due to hook starts
ac2ff24
to
45b8d23
Compare
@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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, LGTM 👍
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
Checklist
Further comments
Reviewers: @webdriverio/project-committers