How could i write unit tests for an application that uses influx db as database without installing influxDB on system.
I want an embedded influxDB to start before tests, tests run, and close after tests.
You could simply use a Docker image such as tutum/influxdb. Only dependency in this setup is installing Docker.
I know this is an old question but I tackle the same issue while developing integration tests on a project.
I created a library for this purpose available on Maven Central (the sources are available on github).
It enables to download and control an InfluxDB server directly from java.
Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With