Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integration Testing with Redis

I've started using Redis in my project with the help of the Jedis library. All is working fine but now I have a problem that my functional tests requires Redis to be up which I want to avoid in my Continuous Integration. What is the best way to do this?

like image 829
Derek Organ Avatar asked Apr 15 '13 08:04

Derek Organ


1 Answers

I've implemented a simple redis embedded runner for Java: https://github.com/kstyrc/embedded-redis

Currently, it uses redis 2.6.14 for*nix and https://github.com/MSOpenTech/redis for Windows. However you can utilize RedisServer class to run your own run script.

I plan to extend the implementation to support RedisConf (bind, slaveof, port, dbfilename, etc). After this, I'll upload jar to clojars for mvn deps.

like image 178
kstyrc Avatar answered Sep 18 '22 09:09

kstyrc