Skip to content

Discovery issue incorrectly reports default methods in Kotlin interfaces #4675

Closed
@hektorKS

Description

@hektorKS

Hello 👋 I just tested 1.13.2 and DiscoveryIssueNotifier is flooding me with warnings for my Kotlin setup for contract testing (that works perfectly fine - there are no discovery issues). Is it possible to fix it too or provide possibility to disable this new discovery feature?

Pseudocode example:

interface DatabaseContract {
    val database: Database
    
    @Test
    fun `should save in batch`() {
        ...
    }

    @Test
    fun `should read all`() {
        ...
    }
}

class InMemoryDatabaseTest: DatabaseContract {
    override val database = InMemoryDatabase()
}

class PostgresDatabaseTest: DatabaseContract {
    override val database = PostgresDatabase()
}

Originally posted by @hektorKS in #4635

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions