Fix slow Intellij when using Kotlin and mockk

Alexandre Liberato
1 min readApr 1, 2020

--

Unusable Intellij: high cpu usage, kotlin.types

If you are having a bad time with Intellij while creating unit tests maybe this tip can help you:

Don’t use wildcard import for mockk!

Change that:

import io.mockk.*

for that:

import io.mockk.every
import io.mockk.mockk
import io.mockk.mockkObject
import io.mockk.mockkStatic
import io.mockk.verify

Welcome!

--

--