Skip to content

Tests inside extensions are not listed correctly when parsing LSP test requests #778

Closed
@adam-fowler

Description

@adam-fowler

The follow code should generate two TestItems inside another

final class MyTests: XCTestCase {
    func test1() {
    }
}

extension MyTests {
    func test2() {
    }
}

In the TestExplorer you should get something like this

- MyTests
  - test1()
  - test2()

Currently they are getting listed as

- MyTests
  - test1()
- test2()

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingsourcekit-lspSourceKit-LSP issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions