It looks like test methods declared in extensions currently show warnings as false positives despite the xctest rule being enabled. The following testExample() method shows a warning.
class MyTestClass: XCTestCase {
}
extension MyTestClass {
func testExample() { // This shows a warning as being unused
XCTAssertTrue(true)
}
}
It looks like test methods declared in extensions currently show warnings as false positives despite the
xctest
rule being enabled. The followingtestExample()
method shows a warning.