Issue #374 - XCTest don't load Resources from the module's bundle

Tests referencing Bundle.module were failing.
Fixed with proposed solution here:
https://stackoverflow.com/questions/47177036/use-resources-in-unit-tests-with-swift-package-manager
This commit is contained in:
Francisco Gindre 2022-04-26 17:33:24 -03:00 committed by Kris Nuttycombe
parent 23097ac8e0
commit a1bc2937d4
4 changed files with 3 additions and 3 deletions

View File

@ -42,9 +42,9 @@ let package = Package(
"proto/darkside.proto"
],
resources: [
.copy("test_data.db"),
.copy("cache.db"),
.copy("ZcashSdk_Data.db"),
.copy("Resources/test_data.db"),
.copy("Resources/cache.db"),
.copy("Resources/ZcashSdk_Data.db"),
]
),
.testTarget(