-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 libraries are not working with cypress 12.15.0 #27113
Comments
Hi @BarbaraGodayol , sorry that you're having trouble. We'll need more information in order to help with this issue:
|
Hi, |
Thanks for the context @sl-tawfiknouri ! There is a known issue with 12.15.0 that we're looking into that may be causing issues under the covers, so it sounds like a temporary workaround for this is to downgrade to 12.14.0 |
Hello @mike-plummer, |
@mike-plummer Sadly, Cypress 12.16.0 does not seem to fix this issue. Still no folder |
Hi @JessefSpecialisterren , sorry you're still having issues. We addressed an issue that was causing this error in 12.16.0 but it appears you've identified one or more edge cases we missed. Are you able to share a reproduction case we can use to troubleshoot? |
Hello @mike-plummer just use The allure-result folder will not be created. Reproduced on a lot of our project (using API testing or UI testing) / (typescript or javascript). You can see below one of our project failing after upgrading cypress to 12.15/16 version :
In our case we switched to |
Reproduction: https://github.com/mike-plummer/cypress-issue-27113 |
@BarbaraGodayol @JessefSpecialisterren @samixchoumi I have replicated your problem in the latest version of Cypress and will forward this ticket to the appropriate team. They will soon evaluate the priority of this ticket and consider their capacity to pick it up. Please note that this does not guarantee that this issue will be resolved. The ticket will indicate status changes during evaluation, so we ask that you please refrain from asking for updates. Thanks! |
Do you have any news on this issue? |
Hi, |
Done quick test on Cypress version |
Checked on |
Having the same issue, latest working version is 12.14.0. Checked with 12.17.2 and it's not working for me as well. |
Having the same issue for |
@samixchoumi Unfortunately we are a very small team and can't address every issue immediately. We are always happy to receive contributions from the community if someone is interested in investigating and resolving this issue - see the Contributing Guide for info on setup and process. The ticket will indicate status changes during evaluation, so we ask that you please refrain from asking for updates. Thanks! |
Having the same issue for |
I am experiencing the same issue. I downgraded Cypress to |
Tendo o mesmo problema para Cypress 12.17.3 e "@shelex/cypress-allure-plugin": "^2.40.0", |
Okay, this isn't the exact solution, but it's a workaround.Downgrade your Cypress to version "cypress": "^11.0.0" or "cypress": "^12.14.0" by executing |
@mike-plummer Any updates on a fix here? I created a plugin for one of our internal projects & that has been failing since 12.15 (it was working up until version 12.14). |
@amaanbs This has not yet been prioritized to be worked by the Cypress team - we would welcome anyone from the community who is interested in taking a look. Information to get started is available in our Contributing Guide. We ask that everyone please refrain from asking for updates - this GitHub issue will reflect status whenever there are updates to share. |
Also waiting here for a fix to upgrade Cypress |
Cy 12.14 and 12.15 diff, only a handful of commits, should not be hard to at least find out what broke: v12.14.0...v12.15.0 Any error, what's actually "broken" - that would help figure out which commit(s) broke it. |
@lmiller1990 I already did some investigating a while ago and I'm pretty sure 89f0fb6 is the culprit. cypress-allure-plugin uses We've switched to mochawesome reporting for our project, by the way. The report isn't as good, but at least it works with newer Cypress versions |
Error on version ^13.4.0 still persist. |
I could fully restore functionality with v0.15.1 https://github.com/mmisty/cypress-allure-adapter with this plugin (replaces Shelex plugin) you need to adjust your cypress.config.ts env variable "allureResultsPath" -> "allureResults" and make the other adjustments, that have been mentioned multiple times in older comments from this thread. UPDATE: Firefox test-execution does not work with mmisty's version 0.15.2. But as Chrome is our leading browser, we can currently live with that. |
Is anyone using this with Cypress Type? The reports are null and it is not working for me. |
Hi, I've stumbled upon this problem regarding version before and I've find a workaround with Cypress@12.14.0, also I've found a solution for an automated pipeline CI/CD workflow with GCP and slack webhook integration so everyday our tests run at X time, upload it to our company gcp bucket and notifies slack with some usefull information, the link to the report and which test cases failed as a preview (there's even a flake logic if anyone needs it, that works when a test has a flake in the end of its title). The example is public in my profile as Cypress-Allure-Example(https://github.com/occasum13/cypress-allure-example), feel free to take a look y'all! :) obs: remove the '^' from package.json cypress dependency so your cypress version won't update. Any doubts feel free to contact me at my linkedin: https://www.linkedin.com/in/joaogayer98/ |
@AhmadfBaker Hello. I have a question. You mentioned that allure-results folder was empty. But you didn`t reveal how you fixed it. I have this folder empty as well. If it is possible could you explain? |
@mmisty please I need your help! I am using latest cypress version: 13.6.4 with typescript. The following error originated from your test code, not from Cypress. We dynamically generated a new test to display this failure.
It comes from import '@mmisty/cypress-allure-adapter/support'; which is in e2e.ts file |
@nenadbjelica hello, could you please check this out and apply what is suggested there If the issue still persist could you please open issue here and add details like
|
hey @nenadbjelica |
Hi @mysticdevx, thank you so much, it works: |
Hello, @mmisty ! When I try to run Cypress the error below appears. I read the comments to see if anyone else had this situation, but I couldn't find one! Tanks! My cypress.config.js looks like this: module.exports = defineConfig({ |
@felipealmeidaacct hi! could you please check whether you have properly installed the plugin. (delete node-modules and install by 'npm i @mmisty/cypress-allure-adapter --save-dev' or yarn if you use yarn pm. If the problem persists could you please create issue in github for @mmisty/cypress-allure-adapter plugin and attach all the details: setup config, cypress.config, package.json |
We are excited to announce the official integration of Allure with Cypress! You can find the Allure-Cypress package at npm; detailed documentation is available on the Allure website. We encourage everyone to try out this new integration. Should you encounter any issues or have feedback, please don't hesitate to share your thoughts in the discussions section on our GitHub organisation. For those interested in the source code, it resides in the allure-js monorepo. @mike-plummer, you can proceed to close the issue at your convenience. |
He @baev great news indeed! will there be a support for cypress with cucumber preprocessor? |
@baev Fabulous, thanks for the awesome integration! Anyone landing on this issue in the future is encouraged to upgrade to the latest version of Cypress and consider using the official integration provided by Allure (above). |
Thanks. allure-cypress works with the latest version of Cypress, BUT unfortunately you lose the automatic annotation of each test step which you got from cypress-allure-plugin (allureLogCypress). This means your test execution in the report is empty and you have to manually add your own step annotations to the tests. |
@PieterGrobler could you give an example of the annotation? |
Example test (with no step annotations added):
Report generated with cypress-allure-plugin with step annotations: |
Hi @baev Can you please confirm if there will be a support for cypress with cucumber preprocessor? |
Yes, definitely. Please follow https://github.com/orgs/allure-framework/discussions/2409 |
@PieterGrobler and others, please use our [Github Discussions] (https://github.com/orgs/allure-framework/discussions/new?category=questions-support) for all the questions. Our team reviews all the requests daily. I'm not sure it works to disturb 50 participants by asking questions here. |
Even with Cypress version Has anyone else seen this behavior? |
Current behavior
Currently, when you are using the library "@shelex/cypress-allure-plugin" and configurating cypress with the property "allure = true", at the end of cypress execution, the folder allure-results is not created.
In the previous versions, the folder was created with all the data
Desired behavior
In this situacion, cypress has to create a folder "allure-results" with all the data to can be used for other tools to create the real report.
Test code to reproduce
cypress.config.ts:
Cypress Version
12.15.0
Node version
v18.15.0
Operating System
windows
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: