wildmountainfarms / solarthing

Monitors an Outback MATE, Renogy Rover - MPPT Charge Controller and EPEver Tracer. Integrates with Grafana, PVOutput and more!
https://solarthing.readthedocs.io
MIT License
127 stars 28 forks source link

Improve integration testing #197

Closed retrodaredevil closed 6 months ago

retrodaredevil commented 7 months ago

We use the docker compose gradle plugin to spin up a CouchDB instance. We currently hard code the port as 5984, which is usually fine.

However, to improve this, we should copy how it's being done here: https://github.com/retrodaredevil/couchdb-java/blob/master/couchdb/src/test/java/me/retrodaredevil/couchdbjava/integration/DatabaseService.java

We have environment variables available to us to get the actual address we can refer to it on.