spockframework / spockframework/spock
Inherited stepwise behaviour
Open
Nobody has claimed this yet.
Module-Core
Type-NewFeature
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 483
- PR merge metrics
- No merged PRs in 30d
Description
Originally reported on Google Code with ID 220
I discovered that the @Stepwise annotation can't be inherited and to solve this problem
I wrote my own annonation and replaced all occurences of "spec.getFeatures()" by "spec.getAllFeatures()"
in a new version of the org.spockframework.runtime.extension.builtin.StepwiseExtension.
So a solution would be maybe another boolean for the annotation f.e. like @Stepwise(inherit=true)
that takes care of these already mentioned function calls.
Reported by johann.boehler on 2011-12-15 09:01:32
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
Start with the @Stepwise annotation and org.spockframework.runtime.extension.builtin.StepwiseExtension, then compare the existing spec.getFeatures() calls with the proposed spec.getAllFeatures() behavior. Done means inherited stepwise behavior is supported, including a clear choice for whether an annotation option such as inherit=true is required.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100