Shelex / cypress-allure-plugin

cypress plugin to use allure reporter api in tests
https://shelex.github.io/cypress-allure-plugin-example/
Apache License 2.0
159 stars 44 forks source link

Cypress 12.15.0 breaks allure reporting #216

Open JessefSpecialisterren opened 1 year ago

JessefSpecialisterren commented 1 year ago

Probably Cypress's fault and likely to be fixed when they fix cy.task (update: see https://github.com/Shelex/cypress-allure-plugin/issues/216#issuecomment-1625253277 below), but I thought I'd create an issue so you're aware. See https://github.com/cypress-io/cypress/issues/27113

JessefSpecialisterren commented 1 year ago

Update: Cypress 12.16.0 does not fix this issue, allure reporting is still broken in that version

samixchoumi commented 1 year ago

Got the same problem, 12.15.0 & 12.16.0 gave the error, downgrade to 12.14.0 work fine.

przedab commented 1 year ago

+1

sl-tawfiknouri commented 1 year ago

+1 Thanks

JessefSpecialisterren commented 1 year ago

Still broken with Cypress 12.17.0. I did some digging, and I'm not so confident anymore that this is going to be fixed on Cypress's side. Using the task Cypress command with cy.now appears to be no longer supported, and cypress-allure-plugin relies heavily on that in its current form 😕

dilshan-swivel commented 1 year ago

Done quick test on Cypress version 12.17.1 and @shelex/cypress-allure-plugin: 2.40.0 , Still it is broken

iwt-ttaskov commented 1 year ago

The plugin does not work with Cypress 12.17.2, neither :(

elnanni commented 1 year ago

+1

benchesh commented 1 year ago

For the record, a project I'm involved with doesn't work on 12.14 either. Any version after 12.10 & the allure report will not be generated.

mikimi1233 commented 1 year ago

For the record, a project I'm involved with doesn't work on 12.14 either. Any version after 12.10 & the allure report will not be generated.

For me it's working on 12.14 🤔 (I use 2.37.0 shelex version) On higher cypress versions not working for me too

dilshan-swivel commented 1 year ago

Done quick test on Cypress version 13.0.0 and @shelex/cypress-allure-plugin: 2.40.0, Still it is broken

MaksimYaginov commented 1 year ago

Same problem after 12.14.0 version

MDzyga commented 1 year ago

In my opinion the problem is in this project. If you check package.json, you will notice that there is hardcoded cypress version on 12.14.0.

vrinda-cmd commented 1 year ago

Anyone got any solution for this? or any other we can use

mikimi1233 commented 1 year ago

Anyone got any solution for this? or any other we can use

Well you can keep the older cypress version and still use shelex or use other reporter (like multiple-cucumber-html-reporter) until they fix it or someone find a solution.

MDzyga commented 1 year ago

I will try to use this package: https://github.com/mmisty/cypress-allure-adapter. It's updated to cypress version 13.0.0

omen-rigby commented 1 year ago

I will try to use this package: https://github.com/mmisty/cypress-allure-adapter. It's updated to cypress version 13.0.0

It's working with cypress@13.1.0 for me, yet logic of grouping tests into suites is different from @shelex plugin.

vallyian commented 1 year ago

Starting with 12.15, event task doesn't fire anymore (here), thus allureMapping never gets set, thus results (here and here) never output anything to results. There's a related defect for task event https://github.com/cypress-io/cypress/issues/27099

Screenshot 2023-09-21 122251 Screenshot 2023-09-21 113504

varshanharshank commented 1 year ago

Same kind issue has been raised in cypress github https://github.com/cypress-io/cypress/issues/27113

Gabrielmrs06 commented 1 year ago

This plugin solves the problem with Cypress ^12.15 and Allure Report

https://www.npmjs.com/package/@mmisty/cypress-allure-adapter

marcrecor commented 1 year ago

any updates with this bug?

vinodkpasi commented 11 months ago

+1

kayun commented 9 months ago

+1