We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b075bb6 commit a79f8a2Copy full SHA for a79f8a2
1 file changed
Tests/AsposeBarcodeCloudTests/AsposeBarcodeCloudTests.swift
@@ -279,9 +279,21 @@ private enum TestConfiguration {
279
return configuration
280
}
281
282
+ if let configuration = loadFromFile(sourceRelativeConfigPath()) {
283
+ return configuration
284
+ }
285
+
286
return loadFromEnvironment(ProcessInfo.processInfo.environment)
287
288
289
+ private static func sourceRelativeConfigPath() -> String {
290
+ URL(fileURLWithPath: #filePath)
291
+ .deletingLastPathComponent()
292
293
+ .appendingPathComponent("configuration.json")
294
+ .path
295
296
297
private static func loadFromFile(_ path: String) -> AsposeBarcodeCloudConfiguration? {
298
guard FileManager.default.fileExists(atPath: path),
299
let data = FileManager.default.contents(atPath: path)
0 commit comments