spockframework / spockframework/spock
Improve the API for: How to create a customized Data Provider
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 483
- PR merge metrics
- No merged PRs in 30d
Description
Hello
Below all the details.
Spock Framework: How to create a customized Data Provider
With the best intentions, if the current API would be enhanced to do simplier this about the Data Provider would be great
I think the following is the ideal scenario:
- Read the data from a
Collection<T>where T is a class such asMyReportwhere each variable (working around setter/getter) represents the data to be assigned in[variable1, variable2, ...] << MyReportFactory.getMyReports()
Therefore MyReport has the private variables variable1, variable2, ... and for each one its setter/getters
Thanks
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 by reading the linked Stack Overflow discussion and locating the current Spock Data Provider API. Compare its behavior with the proposed Collection and MyReport scenario; done means the desired customized provider workflow is supported and covered by appropriate tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100