You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user provides an iterator for each of the *args.
If aga_product is true, we create one set of test inputs for each element of the Cartesian product of each iterator. Otherwise, we iterate through each iterator simultaneously, creating one set of test inputs for each iteration, and stopping (or erroring?) if their lengths differ.
If aga_squash is False, we create one test case for each set of test inputs; otherwise, we put them all in a single test case, and have that test case loop through each set of inputs.
aga_output (and any other aga_-prefixed kwargs) is passed directly to test_case. It should also be a generator and probably only makes sense if aga_product is False, or maybe we just don't want to allow parameterized golden tests like this.
The text was updated successfully, but these errors were encountered:
It would be very convenient to create many test cases simultaneously from iterators. Here's an idea for an API:
The user provides an iterator for each of the *args.
aga_product
is true, we create one set of test inputs for each element of the Cartesian product of each iterator. Otherwise, we iterate through each iterator simultaneously, creating one set of test inputs for each iteration, and stopping (or erroring?) if their lengths differ.aga_squash
is False, we create one test case for each set of test inputs; otherwise, we put them all in a single test case, and have that test case loop through each set of inputs.aga_output
(and any otheraga_
-prefixed kwargs) is passed directly totest_case
. It should also be a generator and probably only makes sense ifaga_product
is False, or maybe we just don't want to allow parameterized golden tests like this.The text was updated successfully, but these errors were encountered: