j2labs / brubeck

Asynchronous web and messaging
http://brubeck.io
511 stars 66 forks source link

Test with fakeredis #94

Closed msabramo closed 11 years ago

msabramo commented 12 years ago

Here is one possible solution to the issues of running a Redis server for testing discussed in #92.

This uses a package called fakeredis which mocks out Redis completely. The nice thing about this project is that the author has invested time in writing tests that verify that the behavior of fakeredis matches the behavior of a real Redis server, so the mock should be pretty faithful.

Using a mock is nice because it eliminates having to launch a Redis server (or risk inadvertently using an existing Redis server) to run the Brubeck tests.

j2labs commented 11 years ago

Closing because I already accepted mock tests from @stuntgoat.

msabramo commented 11 years ago

For folks wondering which PR is the one accepted from @stuntgoat, it's https://github.com/j2labs/brubeck/pull/95