How does dot syntax work with testing files?

I don't understand the following.


Spread this across three files.

import Testing

struct A {
  @Test func test() { }
}
import Testing

extension A {
  struct B {
    @Test func test() { }
  }
}
import Testing

extension A.B {
  struct C {
    @Test func test() { }
  }
}

Name them well, and the innermost ones are broken:


(And you can't make .swift go away, though I can't reproduce that in all cases, and it's not important.)


Name them weird, and one in the middle layer is broken:


How are you supposed to get your green buttons on all your nested tests?

This is a bug specific to Swift Testing's integration in Xcode. Please file a bug report with Apple using Bug Reporting - Apple Developer.