-
-
Notifications
You must be signed in to change notification settings - Fork 617
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
Support testing via SPM #935
Closed
Closed
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
17cc18b
WIP
HeMet ac14a7f
Fix path to the resources of test target
HeMet 6c965f3
Introduce SourceryLib target for testing purpose. It is the same as S…
HeMet aa0a5d0
Import main target as SourceryLib when appropriate
HeMet e1d462c
Re-enable specs that cause linker errors previously. JS spec left dis…
HeMet 095875d
Add instruction how to fix error while running tests from Xcode
HeMet a35e51e
No need to set ejsPath manually when framework is built with SPM anym…
HeMet 18df4f7
Fix file references and build settings
HeMet 6cd1247
Use single define `SPM` that is set when the project is built by SPM
HeMet e3ecc51
Add CodableContextTests
HeMet d2cb069
Fix build when building with SPM alone
HeMet 24d77d5
WIP TemplatesTests
HeMet 053c61b
Fix executable name
HeMet 895dd74
Update TemplatesTests
HeMet 26e02d7
Fix compilation of Xcode's project
HeMet 562dd5b
Add note
HeMet 17af675
Replace SPM flag with SWIFT_PACKAGE
HeMet 6026175
Revert Code signing settings
HeMet df18702
Use release version of Nimble
HeMet 87b2414
Point Quick to 3.0.0 version
HeMet 3381803
Optimize imports
HeMet 34fb840
Exclude some files
HeMet be41da7
Fix error message
HeMet 4425c59
Update template
HeMet 52e10c8
Change wording
HeMet cc48ac3
Add entry to CHANGELOG
HeMet f7e3345
Rakefile: fix path to ejs.js
HeMet 4c76ed8
Rakefile: fix path to ejs.js #2
HeMet 3cef485
CircleCI config: fix path to ejs.js
HeMet 238d210
Add location of lib_InternalSwiftSyntaxParser.dylib to the -rpath
HeMet 130c0ec
Use bundled version of lib_InternalSwiftSyntaxParser.dylib
HeMet dec797d
Fix Nimble dependency
HeMet 6f4273a
Update -rpath of executable too. Otherwise it won't find the library …
HeMet 6acf0cc
Merge branch 'master' into spm-tests
krzysztofzablocki c1ba0ff
Fix imports
HeMet 52929d5
Updated bundled sources
HeMet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use this approach of having the flag but don't use
/usr/bin/swift
, link to the one that's bundled in the repo as this is proper way to do it, that way the SDK matches the dylib regardless of toolchain user hasThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What should it check then if not
/usr/bin/swift
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't really care about user setup for the generic sourcery use, that's why we bundle our own stuff so we don't need to rely, their setup can only affect Swift templates and there are some checks there as far as I remember
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@krzysztofzablocki I understand that. I have already fixed the path the hook adds to
-rpath
so it points to bundled version of the library.But what about
isFromTerminal
flag? You said/usr/bin/swift
should not be used. So what should we check to determine if-rpath
should be modified?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this use is fine, it just checks if its using swift build but it's not pulling anything from it