You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that just the presence of #[macro_use] extern crate redis_module causes the resulting binary produced by cargo test to panic. I had the intention to write some integration tests for my Redis module in Rust and have them run by cargo test but this essentially prevents any testing whatsoever.
Steps to reproduce
Create a new library project
$ cargo new --lib mod_test
Tests pass
$ cd mod_test
$ cargo test
...
running 1 test
test tests::it_works ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
Doc-tests mod_test
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
Add dependency on redis_module and crate import to src/lib.rs.
$ cat Cargo.toml
[package]
name = "mod_test"
version = "0.1.0"
authors = ["Martin Betak <matobet@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
redis-module = "0.9"
It appears that just the presence of
#[macro_use] extern crate redis_module
causes the resulting binary produced bycargo test
to panic. I had the intention to write some integration tests for my Redis module in Rust and have them run bycargo test
but this essentially prevents any testing whatsoever.Steps to reproduce
Create a new library project
Tests pass
Add dependency on
redis_module
and crate import tosrc/lib.rs
.Tests panic
The text was updated successfully, but these errors were encountered: