cypress-allure-plugin icon indicating copy to clipboard operation
cypress-allure-plugin copied to clipboard

Cypress 12.15.0 breaks allure reporting

Open JessefSpecialisterren opened this issue 1 year ago • 23 comments

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 avatar Jun 23 '23 10:06 JessefSpecialisterren

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

JessefSpecialisterren avatar Jun 27 '23 08:06 JessefSpecialisterren

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

samixchoumi avatar Jun 28 '23 12:06 samixchoumi

+1

przedab avatar Jul 03 '23 13:07 przedab

+1 Thanks

sl-tawfiknouri avatar Jul 04 '23 12:07 sl-tawfiknouri

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 😕

JessefSpecialisterren avatar Jul 07 '23 11:07 JessefSpecialisterren

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

dilshan-swivel avatar Jul 11 '23 05:07 dilshan-swivel

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

iwt-ttaskov avatar Jul 21 '23 08:07 iwt-ttaskov

+1

elnanni avatar Aug 09 '23 18:08 elnanni

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.

benchesh avatar Aug 16 '23 13:08 benchesh

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

mikimi1233 avatar Aug 23 '23 12:08 mikimi1233

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

dilshan-swivel avatar Aug 31 '23 07:08 dilshan-swivel

Same problem after 12.14.0 version

MaksimYaginov avatar Sep 05 '23 06:09 MaksimYaginov

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.

MDzyga avatar Sep 06 '23 07:09 MDzyga

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

vrinda-cmd avatar Sep 06 '23 10:09 vrinda-cmd

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.

mikimi1233 avatar Sep 06 '23 10:09 mikimi1233

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

MDzyga avatar Sep 06 '23 12:09 MDzyga

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 [email protected] for me, yet logic of grouping tests into suites is different from @shelex plugin.

omen-rigby avatar Sep 11 '23 05:09 omen-rigby

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

vallyian avatar Sep 20 '23 09:09 vallyian

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

varshanharshank avatar Oct 02 '23 18:10 varshanharshank

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

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

Gabrielmrs06 avatar Oct 03 '23 12:10 Gabrielmrs06

any updates with this bug?

marcrecor avatar Oct 10 '23 14:10 marcrecor

+1

vinodkpasi avatar Dec 05 '23 10:12 vinodkpasi

+1

kayun avatar Jan 16 '24 17:01 kayun