When a class in a test target inherits from XCTestSuite, not XCTestCase, methods inside of it that match the naming convention of tests are erroneously returned as tests in the workspace/tests and textDocument/tests requests.
Steps to Reproduce
The following code reports both Suite and testFoo as something that can be run, but doing swift test --filter TestTarget.Suite/testFoo$ results in no tests being run.
Swift version
swiftlang-6.0.0.9.10
Platform
macOS 15.0
Editor
VS Code
Does the issue reproduce with Swift 6?
Yes
Description
When a class in a test target inherits from
XCTestSuite
, not XCTestCase, methods inside of it that match the naming convention of tests are erroneously returned as tests in theworkspace/tests
andtextDocument/tests
requests.Steps to Reproduce
The following code reports both
Suite
andtestFoo
as something that can be run, but doingswift test --filter TestTarget.Suite/testFoo$
results in no tests being run.Logging
No response