datacube-core icon indicating copy to clipboard operation
datacube-core copied to clipboard

Simplified Developer Testing Setup

Open omad opened this issue 2 years ago • 1 comments

Summary

At the moment, it's too hard for developers to run the integration tests for ODC. This presents a significant barrier to entry for new contributors, and is a big waste of time even for experienced ODC developers.

The biggest requirement hurdle is having a PostgreSQL server running locally in the background for the integration tests to connect to.

Proposal

I think a good solution would be to use pytest-docker to create a pytest fixture to start a stop a local PostgreSQL server instance using docker, whenever the integration tests are run.

The downside is added a development dependency on Docker. I think Docker is common enough in 2022 that this will still be a win for new and existing developers.

omad avatar Oct 31 '22 06:10 omad

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '23 06:04 stale[bot]