allure-framework / allure-java

Allure integrations for Java test frameworks
Apache License 2.0
342 stars 219 forks source link

🐞: Variables in Spock BDD blocks not substituted #965

Open karltiirik opened 8 months ago

karltiirik commented 8 months ago

What happened?

  1. Project https://github.com/karltiirik/spock-restassured-allure
  2. Run tests ./gradlew clean test
  3. Generate report ./gradlew allureServe
  4. A test with a variable both in the test name and "given" block Kuvatõmmis 2023-10-12 235204

Expect: Both variables replaced with actual value Actual: Variable replaced in test name, but not in "given" text Kuvatõmmis 2023-10-12 235714

What Allure Integration are you using?

allure-spock2

What version of Allure Integration you are using?

2.23.0

What version of Allure Report you are using?

2.23.0

Code of Conduct

baev commented 8 months ago

I'm not sure this is possible until https://github.com/spockframework/spock/issues/538 is fixed