Skip to content

[SR-12232] [SPM] --enable-test-discovery ignores inherited test methods #54658

@swift-ci

Description

@swift-ci
Previous ID SR-12232
Radar rdar://problem/59655518
Original Reporter tannernelson (JIRA User)
Type Bug

Attachment: Download

Environment

Xcode Version 11.4 beta (11N111s)

Additional Detail from JIRA
Votes 1
Component/s
Labels Bug
Assignee None
Priority Medium

md5: 1a81d491ee635b8aef736c38df2e9633

Issue Description:

The following code runs `testStuff` on macOS in Xcode and via CLI. However, on Linux using --enable-test-discovery, the `testStuff` method is not found resulting in no tests running.

// module A
open class Foo: XCTestCase { }
extension Foo {
    func testStuff() { ... }
}
// module B
import A
final class Bar: Foo { }

Potentially related to https://bugs.swift.org/browse/SR-11951, but I'm not sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions