Add support for spock 2.0 versions
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
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)
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?
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.
https://github.com/allure-framework/allure-java/pull/830 should solve this issue