You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 } }
The text was updated successfully, but these errors were encountered:
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 } }
The text was updated successfully, but these errors were encountered: