mirror of
https://github.com/floor-licker/polyfill-rs.git
synced 2026-08-23 09:28:05 +00:00
docs: align testing guide with CI
This commit is contained in:
+7
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user