-
Notifications
You must be signed in to change notification settings - Fork 110
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
Allure for Cypress not working #934
Comments
I am experiencing the same issue, is there a solution in the near future? |
Hey there! You don't need to import import "allure-cypress"; |
It doesn't work, the |
Could you provide the process log? Do you see any runtime error? |
|
@bhadmus I have the same problem, did you find any solution? |
@dayaneCsantos check my comment below. if it works for you, help me vote for my answer on stackoverflow as well https://stackoverflow.com/questions/77067015/cypress-allure-reports-are-not-getting-generated/78487640#78487640 |
I eventually fixed this issue. The workaround is to downgrade to Keep all config the same. i.e. import allure-cypress into the
run cypress in headless mode |
The problem has been already resolved in the next |
Even following #934 (comment), I get build errors:
|
Are you trying to use it for Cucumber with Cypress? It doesn't work for it at the moment. I will like to fork this entire repo and see if I can make it work for Cucumber.js |
Looking forward to it |
No, not using Cucumber |
@RobertBattaglia use this for a workaround #934 (comment) until @epszaw releases the fix |
Made changes as per this comment but its not working in my case. Facing this issue while running the scripts on CICD but works fine locally! |
Thank you for all the efforts! When can we expect a release @epszaw |
Can you share the pipeline error? I still used this in a class demo and it worked even with the v.2.15.0 |
@bhadmus This is the error which I got: **Oops...we found an error preparing this test file:
The error was: Error: Can't walk dependency graph: Cannot find module 'allure-cypress/commands' from '/e2e/cypress/support/hooks.ts' This occurred while Cypress was compiling and bundling your test code. This is usually caused by:
Fix the error in your code and re-run your tests.** |
@sadhishsk let me see if I can replicate this in the pipeline |
Even following the instructions, it doesn't work. Thanks! |
Describe the Bug
I get this error when running cypress
Steps to Reproduce
npm install --save-dev allure-cypress
cypress/support/e2e.js file:
cypress.config.js file:
npx cypress run
Expected Behaviour
cypress runs without errors and aluure report is generated
Screenshots or Additional Context
No response
What Language are you using?
JavaScript
What Framework/Allure Integration you are using?
allure-cypress 2.15.1
What version of Allure Integration you are using?
2.15.1
What version of Allure Report you are using?
2.27.0
Code of Conduct
The text was updated successfully, but these errors were encountered: