Skip to content
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

Fallback to disk for loading test resources when bundle does not exist #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hectr
Copy link

@hectr hectr commented Apr 14, 2019

This branch extracts test resource loading logic to a method.

The new method will load the resource from the lib bundle. If the resource file is not contained in the bundle, it will attempt to load it directly from disk.

That change will allow the tests to pass in scenarios where the lib bundle does not contain the test resources (e.g. if you regenerate the project file using Swift Package Manager, see #13).

hectr added 2 commits April 15, 2019 00:28
This is kind of a hack, but a well known one, to be able to run the tests if you have regenerated SwiftyChrono.xcodeproj with SPM.
@hectr hectr mentioned this pull request Apr 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant