when executing `testDevelopDebugUnitTest` gradle t...
# test
m
when executing
testDevelopDebugUnitTest
gradle task, I started to get random errors such as
Copy code
Missing method call for verify(mock) here:
-> at com.nhaarman.mockitokotlin2.VerificationKt.verify(Verification.kt:72)

Example of correct verification:
    verify(mock).doSomething()

Also, this error might show up because you verify either of: final/private/equals()/hashCode() methods.
Those methods *cannot* be stubbed/verified.
Mocking methods declared on non-public parent classes is not supported.
this only happen when the gradle task is executed, and if I ignore that test, then another one fails 🤔 I didn’t modify anything there, not in the injection or anything related.I tried changing the mockito-kotlin version, the mockito-core version, upgrading gradle, upgrading the gradle android plugin..
t
Grasping at straws - are you running parallel?
m
uh let me see
yes I am
t
try it without
m
I have now
Copy code
org.gradle.jvmargs=-Xmx4608M
android.enableD8=true
android.useAndroidX=true
android.enableJetifier=true
org.gradle.parallel=false
kotlin.parallel.tasks.in.project=true
kapt.use.worker.api=true
android.enableUnitTestBinaryResources=true
kapt.incremental.apt=true
I deactivated
org.gradle.parallel=false
but still failing
t
That’s me out of ideas then 😕
m
and that makes the two of us 🙂 the whole day yesterday and still today trying to fix this