allure-java icon indicating copy to clipboard operation
allure-java copied to clipboard

Add support for spock 2.0 versions

Open verifyMe opened this issue 4 years ago • 3 comments

I'm submitting a ...

  • [ ] bug report
  • [x ] feature request
  • [ ] support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

Currently allure supports spock 1.3 version

What is the motivation / use case for changing the behavior?

Spock 2.0 uses junit5, supports parallel test running, groovy 3.0 and other useful features. I use 2.0-M4-groovy-3.0 version and it's incompatible with allure-spock.

Please tell us about your environment:

Allure version 2.13.6
Test framework [email protected]
Allure integration [email protected]
Generate report using [email protected]

Other information

verifyMe avatar Mar 03 '21 16:03 verifyMe

Any updates/news regarding this issue?

Allure-spock:2.15.0 in Allure-Spock adapter class uses "Description description" field of NodeInfo class from spock-core. This field existed in spock-core:1.3-groovy-2.5, but it disappeared in spock-core:2.0-groovy-2.5 and above.

The error: org.spockframework.runtime.model.FeatureInfo.getDescription()Lorg/junit/runner/Description; java.lang.NoSuchMethodError: org.spockframework.runtime.model.FeatureInfo.getDescription()Lorg/junit/runner/Description; at io.qameta.allure.spock.AllureSpock.beforeIteration(AllureSpock.java:123)

Itsamna avatar Oct 15 '21 08:10 Itsamna

Hi, I'd also love to see support for Spock 2.0 being added to allure. I believe the creator of Spock Reports (https://github.com/renatoathaydes/spock-reports) also went through such work to adfd support for Spock 2.0 - perhaps worth to contact him in order to get more info?

svsik avatar Jan 04 '22 12:01 svsik

Would be happy to see the support of Spock as well! Was trying to find any other way to handle this error java.lang.NoSuchMethodError: org.spockframework.runtime.model.FeatureInfo.getDescription()Lorg/junit/runner/Description;, but so far not successful.

feanor777 avatar Jan 18 '22 02:01 feanor777

https://github.com/allure-framework/allure-java/pull/830 should solve this issue

karltiirik avatar Oct 13 '22 14:10 karltiirik