Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test logging support (kmp, android) #25

Open
Kronos0041 opened this issue May 17, 2024 · 0 comments
Open

Test logging support (kmp, android) #25

Kronos0041 opened this issue May 17, 2024 · 0 comments

Comments

@Kronos0041
Copy link

Kronos0041 commented May 17, 2024

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 } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant