Skip to content

test_with::env executes even if env var is unset #60

@WhyNotHugo

Description

@WhyNotHugo

I've checked out #55 and I have test with macros in this order:

#[serial]
#[test_with::env(CALDAV_SERVER)]
#[tokio::test]
async fn test_fetch_missing() {

However, the test is executed even if CALDAV_SERVER is unset. This is my dependency tree:

[dependencies]
async-trait = "0.1.66"
base64 = "0.21.0"
domain = { version = "0.7.2", features = ["resolv"] }
http = "0.2.9"
hyper = { version = "0.14.24", features = ["http1", "client"] }
hyper-rustls = "0.23.2"
log = "0.4.17"
quick-xml = { version = "0.27.0" }
thiserror = "1.0.38"
tokio = "1.25.0"

[dev-dependencies]
env_logger = "0.10.0"
rand = "0.8.5"
serial_test = { version = "1.0.0", default-features = false, features = ["async"] }
test-with = { version = "0.9.6", default-features = false }

Any ideas? The full repo is at https://git.sr.ht/~whynothugo/vdirsyncer-rs, branch test_with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions