- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 132
Open
Labels
Description
I was thinking of moving the tests to a more robust unit test model. It'll take:
- The
dtype
,shape
of each input array. - The function name to test (both sparse and NumPy/SciPy) or callable.
- Where to place the arguments.
- Any additional arguments to the function.
It will:
- Generate the random arrays.
- Perform the operation on both arrays.
- Compare/assert.
This way, tests just reduce to "stub classes" instead of repetitions.
cc: @mrocklin
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
mrocklin commentedon Jun 28, 2018
[-]Move to a more robust unit testing model[/-][+]Make the test suite more robust[/+]rgommers commentedon Jun 28, 2018
Sounds like that could be helpful. The one thing to check is designing it in such a way that the tracebacks are still as understandable (exactly which set of arguments is failing)