-
Notifications
You must be signed in to change notification settings - Fork 64
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.1 deprecated + initialize
in Swift classes
#68
Comments
Use case 1 NativeTestCase Use case 2 NativeTestCase Feedback to Possibilities mentioned by @kerrmarin
|
Hi everyone - this is a real issue now because in swift 4 it's moved from deprecated to forbidden :( |
@kerrmarin awesome, I wanted to test this but noticed but pod version isn't updated yet, could you or @nap-sam-dean plz bump the pod version? |
@smaljaar Just released as version 0.12 :) (If this works for you we can close this issue :) |
Context
Since upgrading to Xcode 8.3 and Swift 3.1, we encounter the following warning:
Method 'initialize()' defines Objective-C class method 'initialize', which is not guaranteed to be invoked by Swift and will be disallowed in future versions
Currently the
NativeTestCase
relies on behaviour provided by+ initialize
to work.Since we merged #50,
NativeTestCase
andNativeRunner
have similar functionality.NativeRunner
doesn't have the limitations ofNativeTestCase
, butNativeTestCase
has the benefit of more meaningful test names.NativeRunner
also has an API that feels more natural.I think for now there's value in keeping both
NativeTestCase
andNativeRunner
.Possibilities
NativeTestCase
in Objective-C. There are some downsides to this like compile times would increase although perhaps only negligibly.NativeTestCase
and find a way to incorporate its advantages toNativeRunner
. Then removeNativeTestCase
for 1.0 to remove duplication and reduce API surface. I think we also need to decide if there's any value in having two ways of doing native feature files, especially if we can clean up the implementations and are able to implement XCTestCase stubbed generator from native feature files #55.I'd love to hear some feedback from @smaljaar and any other users of the library to hear use cases.
🌮 🚀
The text was updated successfully, but these errors were encountered: