-
Notifications
You must be signed in to change notification settings - Fork 305
Add a request to list all the tests within a workspace or document #978
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
Conversation
@swift-ci Please test |
A couple things I didn’t consider in the initial draft:
|
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.
Cool!
Does this work with swift-testing too? |
guard let index = workspace.index else { | ||
return [] | ||
} | ||
let xctestSubclasses = index.occurrences(ofUSR: "c:objc(cs)XCTest", roles: [.baseOf]) |
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.
The superclass to look for is named "XCTestCase". The class named plain "XCTest" is its superclass, but it's abstract and we only search for subclasses of the former.
8e3612d
to
f84dd52
Compare
f84dd52
to
9d4f80f
Compare
9d4f80f
to
2b454d3
Compare
@swift-ci Please test |
2b454d3
to
be3ffcd
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
be3ffcd
to
827fad0
Compare
@swift-ci Please test |
827fad0
to
1b772ea
Compare
@swift-ci Please test |
4bb2cde
to
66b8d42
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
66b8d42
to
059782b
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
059782b
to
96905aa
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
Requires swiftlang/indexstore-db#175
Fixes #611
rdar://98710526