Skip to content

Commit

Permalink
testing module with mock redis connection and command
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Dyas committed Jul 4, 2022
1 parent ff4a550 commit 6ef6d2f
Show file tree
Hide file tree
Showing 3 changed files with 424 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
@@ -1,2 +1,2 @@
[workspace]
members = ["redis"]
members = ["redis", "redis-test"]
23 changes: 23 additions & 0 deletions redis-test/Cargo.toml
@@ -0,0 +1,23 @@
[package]
name = "redis-test"
version = "0.1.0"
edition = "2018"
description = "Testing helpers for the `redis` crate"
homepage = "https://github.com/redis-rs/redis-rs"
repository = "https://github.com/redis-rs/redis-rs"
documentation = "https://docs.rs/redis-test"
license = "BSD-3-Clause"

[dependencies]
redis = { version = "0.21.5", path = "../redis" }

bytes = { version = "1", optional = true }
futures = { version = "0.3", optional = true }

[features]
aio = ["futures", "redis/aio"]

[dev-dependencies]
redis = { version = "0.21.5", path = "../redis", features = ["aio", "tokio-comp"] }
tokio = { version = "1", features = ["rt", "macros", "rt-multi-thread"] }

0 comments on commit 6ef6d2f

Please sign in to comment.