swiftlang / vscode-swift

Visual Studio Code Extension for Swift
https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang
Apache License 2.0
755 stars 54 forks source link

Issues with tests in classes with the same name but in different targets #936

Closed adam-fowler closed 4 months ago

adam-fowler commented 4 months ago

Describe the bug If I have two test targets and both of them have a XCTest test class with the same name in a file with the same name then the Test Explorer struggles to create the correct TestItem hierarchy for these two classes. It tends to place all the tests from both classes under one TestItem, instead of under the correct TestItem associated with their class

Environment

adam-fowler commented 4 months ago

Here is a sample project demonstrating the issue moving-tests.zip