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

Cucumber: Allure doesn't resolve Gherkin keywords as steps #186

Closed
przemdabr opened this issue Feb 1, 2023 · 10 comments
Closed

Cucumber: Allure doesn't resolve Gherkin keywords as steps #186

przemdabr opened this issue Feb 1, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@przemdabr
Copy link

Describe the bug
Allure Reports were not resolving Gherkin keywords as steps.
Reports are generated but instead of Gherkin keywords as a root there are some strange steps with "then function() {}"

To Reproduce
package.json
image

config.ts
image
image

feature file
image
steps
image

Allure report json
image

Allure report
image

Expected behavior
Gherkin Keywords should group Cypress steps

Environment (please complete the following information):

  • Cypress version: 12.5.0
  • OS: Win 11

** Developer Tools Console Output **

Additional context
I checked many combinations of Cypress ^12 with cypress-cucumber-preprocessor and cypress-allure-plugin, but I'm always getting the same results without grouped steps.

@przemdabr przemdabr added the bug Something isn't working label Feb 1, 2023
@AKlavins
Copy link

I can also reproduce the same issue. I think it appeared after cypress-cucumber-preprocessor v15.1.0 that added "Log steps and commands using log groups" functionality: https://github.com/badeball/cypress-cucumber-preprocessor/releases/tag/v15.1.0
And the problem is not reproducible with cypress-cucumber-preprocessor v15.0.0

@MadSandwich
Copy link

I also faced this problem. Rollback cypress-cucumber-preprocessor version to 15.0.0 fix this issue for me. Is as per Closed Issue, they won't fix this on their side.

@Shelex Is it possible to make a fix on allure plugin side?

@Shelex
Copy link
Owner

Shelex commented Mar 14, 2023

I guess it is possible, but will require some leisure time which I do not have at the moment in enough capacity.

@varshanharshank
Copy link

@Shelex any update about this ticket

@Shelex
Copy link
Owner

Shelex commented May 1, 2023

@varshanharshank I have invested some time into that, but no "releasable" outcome yet.

Shelex pushed a commit that referenced this issue May 8, 2023
@Shelex
Copy link
Owner

Shelex commented May 8, 2023

@przemdabr @samixchoumi @MadSandwich @jzaratei @Krivega @AKlavins @varshanharshank

Version v2.39.0 is released where I can see gherkin steps handled properly for my example report

Please let me know if this is still an issue for you.

@MadSandwich
Copy link

@Shelex everything is good for me, thanks for your help!

@AKlavins
Copy link

Thanks you @Shelex , looking good for me as well!

@samixchoumi
Copy link

Hello @Shelex, it seem to works fine for us too (and with cucumber preprocessor uptodate too 👍)

@Shelex
Copy link
Owner

Shelex commented May 10, 2023

As no negative feedback regarding the fix is received, closing the issue.

@Shelex Shelex closed this as completed May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants