Search code examples
unit-testingjunitinfluxdbnosql

Unit test for programs that uses influxdb


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.


Solution

  • You could simply use a Docker image such as tutum/influxdb. Only dependency in this setup is installing Docker.