-
Notifications
You must be signed in to change notification settings - Fork 68
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
Issue with @testable import test #4
Comments
@remirobert are you using the sample repo or your own repo? I didn't see anything related to @testable here. |
My own. |
Buck itself provide the guideline about how to config In our migration, we did encounter some cases that @testable fail, but that's mostly due to there is swift module in the module which being tested. |
I have read the documentation, and tried different settings, but at this end I always got that runtime crash. Thanks for your help. |
you need to add |
Yes without the |
I found an Objc example working with the |
Nope, it’s not related. You need to put “deps” into the test build rule to make it build. |
Closing this since the problem should have been resolved |
@zayhero, Still doesn't build even adding apple_test(
name = 'appTests',
deps = [':app'],
test_host_app = ':app',
run_test_separately = True,
info_plist = 'appTests/Info.plist',
srcs = glob([
'appTests/**/*.swift'
]),
frameworks = [
'$SDKROOT/System/Library/Frameworks/Foundation.framework',
'$SDKROOT/System/Library/Frameworks/UIKit.framework',
'$PLATFORM_DIR/Developer/Library/Frameworks/XCTest.framework',
]
) |
@remirobert, it builds because there are no swift sources in |
I am currently having an issue, in my tests, I am using @testable import to access the API code I want to test.
Here my BUCK:
buck test :chatApp
I am having a runtime crash.
Is it possible to have the @testable import?
If not what is the other alternative to test my code?
Here the error :
The text was updated successfully, but these errors were encountered: