This feature is only expected to work for specialized subclasses of generic subclasses of XCTestCase. So for example, in the following code:
struct Foo { ... }
class Parent<T>: XCTestCase { ... }
class Child: Parent<Foo> { ... }
only the test class Child and the test methods it contains will be run, since it is a subclass of Parent which specializes the generic T type to be the concrete type Foo.
It is not possible to run Parent on its own, because there is no information about what specific type to use for T and XCTest needs that in order to instantiate an instance of Parent.