Skip to content

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

@adam-fowler

Description

@adam-fowler

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

  • OS: macOS 14.2
  • Swift version: Apple Swift version 6.0-dev (LLVM de395d39a90ed7a, Swift 490cf64aee23f13)
  • vscode-swift version: 1.10.3

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions