Skip to content

Change test utils RedisConnection process to be less opinionated.

Nathan Harris requested to merge test-util-connections into master

Motivation:

After working with RedisKit with RediStackTestUtils as a dependency, it was realized how opinionated the module is in how RedisConnections can be created in test environments.

Modifications:

Require more information, with reasonable defaults for RedisConnection.init(). Provide subclass hooks for RedisIntegrationTestCase for implementors to make decisions for themselves at how to connect to Redis.

Result:

Users should have more freedom in how they connect to Redis in their units tests.

Merge request reports