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
[SR-1165] Swift 3 importer creates duplicate XCTest.run() methods #392
Comments
cc @DougGregor |
This is something that can be fixed with swift_name. |
From what I understand that'll have to be added by the Apple XCTest team, correct? I don't think we can specify a name for that method from within the apple/swift XCTest SDK overlay. I'll file a radar. |
Attached a radar link.
|
Follow-up: this can be done by modifying the apinotes, see here: apple/swift#2434 (comment) In other words, any contributor should be able to take care of this fairly easily. |
Sent up a pull request: apple/swift#2645 |
Comment by Mike Ferris (JIRA) This has been addressed in Xcode's XCTest via rdar://problem/25780530. We will be removing the deprecated method (it was deprecated a long time ago.) |
Comment by Mike Ferris (JIRA) Addressed via <rdar://problem/25780530> -[XCTest runTest] and -[XCTest run] generate duplicate method names in Swift 3 in Xcode's XCTest |
Awesome, thanks! I posted a follow-up question on apple/swift#2645 Once the API change is reflected on CI (maybe it already is?), we should clean up the tests a little (the |
Additional Detail from JIRA
md5: 86b338119b5fe40134e34b05d44c80d9
Issue Description:
I used
swift-api-dump.py
to generate XCTest.framework headers:Using a recent commit of Swift (apple/swift@fc86f6e86ef5405756e0052e27dae1830e3d33bc), the importer generates two
XCTestCase.run()
definitions:These two should be disambiguated by being given different names. Alternatively, the deprecated
run()
method could be removed--although I'd expect you'd need to confirm with the Apple XCTest team that this is OK.The text was updated successfully, but these errors were encountered: