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

[🐛 Bug]: Console.Logs not attaching to AllureReport on a failed cucumber step #7686

Closed
3 tasks done
starbuck251 opened this issue Nov 11, 2021 · 2 comments
Closed
3 tasks done
Assignees
Labels

Comments

@starbuck251
Copy link

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

7.10

Node.js Version

12

Mode

WDIO Testrunner

Which capabilities are you using?

NA

What happened?

When running tests with Cucumber framework, allure reporter and console.logs to be attached, when a step fails the logs are not attached to the allure report

I have chatted with @praveendvd on his PR #7134 around this issue
and a fix that was tested by my developer in house was confirmed along with Praveens initial thoughts on the fix. Fix just involves moving a single line to the top of onTestFail which is captured in the conversation on the PR.

What is your expected behavior?

On fail the logs should be attached to the allure report

How to reproduce the bug.

When running wdio with allure logs, cucumber framework, and console logs attaching to the allure report, when a step fails, on opening the report, the failed step does not have the logs leading up to failing, all passing steps contain logs.

Relevant log output

NA

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues
@starbuck251 starbuck251 added Bug 🐛 Needs Triaging ⏳ No one has looked into the issue yet labels Nov 11, 2021
@praveendvd
Copy link
Contributor

Thank you will push the fix today 🙂

@praveendvd
Copy link
Contributor

Fixed as part of #7691 , thanks for raising @starbuck251

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants