Skip to content

Development of automated tests #148

@jnettels

Description

@jnettels

Currently there are only tests for building the project and testing code style. It would be useful to test the functionality of dhnx.

Instead of writing unit tests for various functions, I would propose to start implementation of tests by automatically running some of the example scripts, like e.g.:
https://github.com/oemof/DHNx/blob/dev/examples/optimisation/import_osm_invest/import_osm_invest.py

We could test whether the code finishes successfully (at all), or e.g. compare an expected length of the network. However, this might change if the downloaded openstreetmap data changes for any reason.

Any thoughts?

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