-
-
Notifications
You must be signed in to change notification settings - Fork 914
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
[Swift 3.0] swift test
fails with fatal error: use of unimplemented initializer 'init(invocation:)'
#600
Comments
Thanks for the great write-up! This is a tough issue to solve, I think. Perhaps we can work around it using the SwiftPM macro? I think it was |
Any progress on this? |
Has this problem been solved already? |
This should not be resolved yet. We can't use Quick with SwiftPM on macOS now. |
That's kind of unrelated to this issue, no? Can we file a new issue with details specific to SPM? |
I believe this issue is already specific to SwiftPM as @norio-nomura reported originally. |
I am getting this error after $ swift test
Compile Swift Module `QuickTests` (20 sources)
/Users/Wongzigii/Quick/Tests/QuickTests/QuickAfterSuiteTests/AfterSuiteTests.swift:3:8: error: no such module 'Nimble'
import Nimble
^
/Users/Wongzigii/Quick/Tests/QuickTests/QuickAfterSuiteTests/AfterSuiteTests.swift:3:8: error: no such module 'Nimble'
import Nimble
^
<unknown>:0: error: build had 1 command failures
error: exit(1): /home/zigii/swift/usr/bin/swift-build-tool -f /home/zigii/Quick/.build/debug.yaml test Ubuntu 16.04 / Quick 1.0.0 / Swift 3.0.1 |
It seems like this is a regression from removing Nimble as a dependency for SPM. I'm not sure if users of Quick in Linux has this issue or just Quick's 'swift test' command.
Check the Travis.yml to see that the Package.test.swift get renamed to Package.swift before 'swift test' gets called.
|
SwiftPM does not build the test suites of dependencies, so that should not affect Quick users on Linux. |
Using
swift-3.0
branch,swift test
fails on macOS as following:Current implementation of Quick needs instance of
QuickSpec
for enumerating test methods. But It fails to create instance in Swift.Because:
QuickSpec.swift
is used instead ofQuickSpec.m
because building Objective-C is not supported by Swift Package ManagerNSInvocation
is unimplemented on Swiftinit(invocation:)
that uses unimplemented type in Swiftpublic required override init()
is declared inQuickSpec
init(invocation:)
is called frominit()
by superclass ofXCTestCase
Call stack on fatal error:
This is that I can't resolve on #510 and is part of description written in #510 (comment).
The text was updated successfully, but these errors were encountered: