Bundle modude not found in unit tests.

Hi,

I Want to access resources from spm dependency in unit tests target. When I use Bundle.module I get this error:

Fatal error: unable to find bundle named ...

It's error in my code, or it's error in spm?

thanks
I'm having the same problem. Interestingly, things work fine if the package is built and tested with Xcode. However, running swift test on the terminal fails.
Just for reference, the issue is discussed in more detail here: https://forums.swift.org/t/swift-5-3-spm-resources-in-tests-uses-wrong-bundle-path/37051/6
There is also a bug report here: https://bugs.swift.org/browse/SR-12912
Bundle modude not found in unit tests.
 
 
Q