spockframework / spockframework/spock

Implicit and explicit spread-dot do not work to declare interactions

Open
#1,042 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
3.6k
Forks
483
PR merge metrics
No merged PRs in 30d

Description

Neither this:

[message, messageByFakeUser]*.author.name >> actualUserName

nor this:

[message, messageByFakeUser].author.name >> actualUserName

work.
This does:

[message, messageByFakeUser].each {
    it.author.idLong >> actualUserId
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the two failing spread-dot interaction examples and compare them with the working each example shown in the issue. Done means implicit and explicit spread-dot forms can declare the same interaction as the each-based form.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.