docs: align testing guide with CI

This commit is contained in:
floor-licker
2026-01-30 20:54:21 -05:00
parent d45b202d6d
commit 31062b3ed7
3 changed files with 62 additions and 29 deletions
+7 -1
View File
@@ -34,6 +34,12 @@ impl Default for TestConfig {
}
impl TestConfig {
/// Load a test configuration from environment variables (and a local `.env` file, if present).
pub fn from_env() -> Self {
dotenvy::dotenv().ok();
Self::default()
}
/// Check if we have authentication credentials
pub fn has_auth(&self) -> bool {
self.private_key.is_some()
@@ -163,4 +169,4 @@ impl TestReporter {
pub fn performance(test_name: &str, duration: Duration) {
println!("{} completed in {:?}", test_name, duration);
}
}
}