-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Package Manager Resources in Swift PM Unit Tests #192
Comments
I have an attempt at this in https://github.com/thomasvl/gtm-session-fetcher/tree/swiftpm_updates.
|
I also posted on the Swift Forums about this and they also pointed at that PR, but I'm not sure if it is the same problem. That fix shows the old code path calling |
We should file a new bug then. XMPPFramework #1177 suffer from the same issue. |
Opened https://bugs.swift.org/browse/SR-13560 also. |
Document the resources support that isn't working in SwiftPM 5.3, and create the version specific files that will be needed to eventually use it. Progress on google#192
Document the resources support that isn't working in SwiftPM 5.3, and create the version specific files that will be needed to eventually use it. Progress on #192
- Provide a map of documents to the http server used in testing, removes the need for resources in the testing. - Prune a few apis that are based around things that appear to hit the disk. Fixes google#192
- Provide a map of documents to the http server used in testing, removes the need for resources in the testing. - Prune a few apis that are based around things that appear to hit the disk. Fixes #192
Currently, in order to have successful tests when using the Swift Package Manager the gettysburgaddress.txt file is copied manually to the unit test bundle resources folder.
gtm-session-fetcher/Source/UnitTests/GTMSessionFetcherFetchingTest.m
Lines 94 to 126 in 83e8f3c
Swift 5.3 introduced a new feature called Package Manager Resources. Once this gets rolled into production, it must be used to copy resources rather than doing it manually.
The text was updated successfully, but these errors were encountered: