Skip to content

🐞: Variables in Spock BDD blocks not substituted #965

Closed

Description

@karltiirik

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

  • I agree to follow this project's Code of Conduct

Activity

  1. changed the title [-]🐞: Variable in Spock BDD blocks not substituted[/-] [+]🐞: Variables in Spock BDD blocks not substituted[/+] on Oct 12, 2023
  2. baev commented on Oct 13, 2023

    @baev
    Member

    I'm not sure this is possible until spockframework/spock#538 is fixed

  3. added theissue type on Jul 10, 2026
  4. removed
    pr:bugSomething isn't working
    on Jul 10, 2026
  5. added a commit that references this issue on Jul 23, 2026
    368e014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions