Skip to content

Improve testing coverage #144

@Oisin-M

Description

@Oisin-M

What maintenance does this project need?

This project needs more extensive tests to improve the code coverage and catch any bugs.

The repository has the following modules:
river_network, streamorder, upstream, downstream, move, catchments, subnetwork, distance and length. All of the public methods for these functions should be extensively tested. Most functions have two implementations, one at the high-level which returns xarray and one at the low-level which returns arrays. The functions should be tested for vector inputs where applicable. For the array implementation, currently only numpy is being tested, but it would be good to also test the other supported array backends.

Please read the documentation in detail before commencing. Organise the tests as follows:

  • have a folder for each module
  • have subfolders for xarray and array, if applicable

Make the code simple to follow and lean, but make sure to prioritise code coverage. All tests must pass, and test the important behaviour.

Organisation

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions