()
| 121 | |
| 122 | #[test] |
| 123 | fn test_load_from_path() { |
| 124 | let temp_dir = TempDir::new().unwrap(); |
| 125 | let config_path = temp_dir.path().join("codspeed.yaml"); |
| 126 | |
| 127 | fs::write( |
| 128 | &config_path, |
| 129 | r#" |
| 130 | options: |
| 131 | warmup-time: 5s |
| 132 | "#, |
| 133 | ) |
| 134 | .unwrap(); |
| 135 | |
| 136 | let config = ProjectConfig::load_from_path(&config_path).unwrap(); |
| 137 | assert!(config.options.is_some()); |
| 138 | } |
| 139 | |
| 140 | #[test] |
| 141 | fn test_load_from_path_invalid_yaml() { |