Datasets preprocessing #470
fabio-ivona
started this conversation in
Ideas
Replies: 2 comments 8 replies
-
I like it. Although think that logic should be deferred to the dataset. How about if any params to 'with' after the first are passed to the dataset? That way, you can handle it however you want? |
Beta Was this translation helpful? Give feedback.
5 replies
-
Does this work without named arguments? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
main idea
Following the ideas and neets stated in #469 and #319, I think we could work on a dataset preprocessing feature that will allow to manipulate a dataset before using it in a specific test
the main sintax could be:
this will result on the test being executed on a subset of 10 elements of the 'cities' dataset, extracting the 'postcode' key of each entry
implementation
this could be achieved by storing the preprocessing closure along with the dataset inside
DatasetRepository
and applying it insideDatasetRepository::processDatasets
note
this would target Pest V2, as it will result in a breaking change as now
->with(..)
can accept a variadic argument to define a dataset matrix, with this feature it won't anymorethe dataset matrix feature will still be available by calling
->with()
multiple times:Beta Was this translation helpful? Give feedback.
All reactions