spockframework / spockframework/spock

Improve the API for: How to create a customized Data Provider

Open
#567 0 comments 0 reactions 0 assignees View on GitHub

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 as MyReport where 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.