Skip to content

Can't read configuration file for mockk from androidHostTest source set (new DSL for android kmp library) #1504

@marcinefento

Description

@marcinefento

Hi!

I'm using mockk inside KMP project with android target, and after migrating to new DSL, with androidHostTest replacing androidUnitTest, mockk is not able to load global properties from configuration file (src/test/resources/mockk.properties).
In my case it results in throwing MockKException for every not registered answer for Unit functions, as I used it mainly to specify relaxUnitFun=true globally.

MockK version: 1.14.7
Kotlin version: 2.3.0
AGP version: 9.0.0

Thank You very much for support. 😁

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions