KmLogging icon indicating copy to clipboard operation
KmLogging copied to clipboard

Test logging support (kmp, android)

Open Kronos0041 opened this issue 9 months ago • 0 comments

When write test log in test function in commontTest section, android studio show error for test Method d in android.util.Log not mocked. Example: @Test fun testLevelStates() = runBlocking { KmLogging.debug("test", "kmp test") } Just need add unitTests.isReturnDefaultValues support in build.gradle (android) section android { testOptions { unitTests.isReturnDefaultValues = true } }

Kronos0041 avatar May 17 '24 06:05 Kronos0041