spockframework / spockframework/spock
Allow where block parameters to be ivars and maybe @Shared and static
Open
Nobody has claimed this yet.
Module-Core
Type-Enhancement
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 483
- PR merge metrics
- No merged PRs in 30d
Description
Originally reported on Google Code with ID 182
It can be convenient to use the where block to parameterise ivars in specs.
It might be feasible to do @Shared and static as well, but I think this is probably
not a good idea as it's going to break parallelism.
Reported by ldaley on 2011-05-12 04:08:35
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name a source file, test, or entry point. First clarify whether support is intended only for instance variables or also @Shared and static parameters, then trace how where-block parameters are handled and assess the parallelism concern. Done should mean the agreed parameter forms work with tests covering the supported scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100