// Minimal Firestore integration smoke test. // This test compiles and runs under `cargo test`. It will attempt a small // credentials check when `GOOGLE_APPLICATION_CREDENTIALS` is set, otherwise // it will print a message and return immediately (so CI without credentials // doesn't fail). #[cfg(test)] mod tests { use std::env; // Use the tokio test runtime which is already a dependency in the project. // Minimal Firestore integration tests. // Tests will skip when `GOOGLE_APPLICATION_CREDENTIALS` is not set. #[tokio::test] async fn firestore_smoke_credentials_check() { if let Ok(path) = env::var("GOOGLE_APPLICATION_CREDENTIALS") { // If the credentials env var is set, ensure the file is readable. match tokio::fs::metadata(&path).await { Ok(meta) => { assert!(meta.is_file(), "GOOGLE_APPLICATION_CREDENTIALS is not a file"); } ...