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

Unable to generate allure report in case of playwright + cucumber combination #1822

Closed
alikhanm86 opened this issue Oct 20, 2021 · 7 comments
Labels
🙅 wontfix This will not be worked on

Comments

@alikhanm86
Copy link

alikhanm86 commented Oct 20, 2021

Bug Description
I'm unable to generate allure report in case of playwright + cucumber combination

I'm trying to generate allure reports for my automation framework which is on playwright + cucumber combination. But for me, "allure-results" folder is generated but its blank. Not sure if I'm doing something wrong. Could you anyone pls suggest?

GitHub Template that I used: https://github.com/Tallyb/cucumber-playwright
Cucumber Allure Integration link: https://github.com/allure-framework/allure-js/blob/master/packages/allure-cucumberjs/README.md

FYI, I don’t have any issues in case of playwright test runner. Above problem is only in case of cucumber playwright.

Expected behavior
Allure report has to be generated successfully

Desktop (please complete the following information):

  • OS: MAC Big Sur 11.3.1
  • Chrome, Firefox, Webkit

Additional context
I don’t have any issues in case of playwright test runner. Above problem is only in case of cucumber playwright.

@aurelien-reeves aurelien-reeves added the ❓ question Consider using support forums: https://cucumber.io/tools/cucumber-open/support label Oct 20, 2021
@aurelien-reeves
Copy link
Contributor

I do not know Allure, either playwright, and I do not have those tools at the moment that would help doing some tests.
Would you have the possibility to share a public repo with a minimal reproducible example and basic commands to reach the states you encounter?

Also, you may ask on https://github.com/Tallyb/cucumber-playwright or even https://github.com/allure-framework/allure-js. They may be helpful too.

@alikhanm86
Copy link
Author

Thanks for the quick reply.

Below mentioned is a public repo, which can be cloned and executed directly without any changes. It consists 2 simple scenarios.

https://github.com/Tallyb/cucumber-playwright

@aurelien-reeves
Copy link
Contributor

Yes, and after cloning Tallyb/cucumber-playwright and npm install-test, it is working as expected.

How did you integrate allure report with it?

@aurelien-reeves
Copy link
Contributor

aurelien-reeves commented Oct 20, 2021

You won't be able to make both work together at the moment.

Tallyb/cucumber-playwright is based on new versions of cucumber: @cucumber/cucumber 7.3.1
allure-cucumberjs is based on legacy cucumber package 6.0.5.

You may consider opening an issue on allure-cucumberjs, or submit a PR, to upgrade to new @cucumber/cucumber packages.

There is actually a PR on allure-framework to support cucumber-js 7: allure-framework/allure-js#346

@aurelien-reeves aurelien-reeves added 🙅 wontfix This will not be worked on and removed ❓ question Consider using support forums: https://cucumber.io/tools/cucumber-open/support labels Oct 20, 2021
@aurelien-reeves
Copy link
Contributor

This is not related to cucumber, I close the issue. But we can still discuss here if you need to @alikhanm86

@alikhanm86
Copy link
Author

ohh.. Got it. Thank you so much. All that I'm trying to achieve is to generate allure reports in case of playwright cucumber. Could you pls clarify the below questions?

  1. Can I understand that if "Tallyb/cucumber-playwright" is modified to refer the legacy cucumber package 6.0.5, will it work.
  2. Though the allure-cucumberjs is upgraded to @cucumber/cucumber7, it's still allure & cucumberjs combination. It might work for any js framework. But, I'm not sure if works in case of playwright.

@aurelien-reeves
Copy link
Contributor

ohh.. Got it. Thank you so much. All that I'm trying to achieve is to generate allure reports in case of playwright cucumber. Could you pls clarify the below questions?

1. Can I understand that if "Tallyb/cucumber-playwright" is modified to refer the legacy cucumber package 6.0.5, will it work.

Technically, I guess it should work, but I won't ever encourage downgrading things.

2. Though the allure-cucumberjs is upgraded to @cucumber/cucumber7, it's still allure & cucumberjs combination. It might work for any js framework. But, I'm not sure if works in case of playwright.

I don't have the answer to that one, sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙅 wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants