Skip to content

Make the test suite more robust #163

Open
@hameerabbasi

Description

@hameerabbasi

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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions