View Source README

Master Hex.pm Version

Divo Redis

A library implementing the Divo Stack behaviour, providing a pre-configured redis via docker-compose for integration testing Elixir apps. The cluster is a single-node redis compose stack that neither requires (nor accepts) no further configuration.

Requires inclusion of the Divo library in your mix project.

installation

Installation

The package can be installed by adding divo_redis to your list of dependencies in mix.exs:

def deps do
  [
    {:divo, "~> 2.0.0"},
    {:divo_redis, "~> 1.0.0"}
  ]
end

use

Use

In your Mix environment exs file (i.e. config/integration.exs), include the following:

config :myapp,
  divo: [
    {DivoRedis, []}
  ]

In your integration test specify that you want to use Divo:

use Divo
...

The resulting stack will create a single-node Redis instance exposing port 6379 to the host.

configuration

Configuration

DivoRedis takes no configuration.

See Divo GitHub or Divo Hex Documentation for more instructions on using and configuring the Divo library. See antirez/redis for further documentation on using and configuring the features of these images.

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/divo_redis.

license

License

Released under Apache 2 license.