hi. I use Hilt and fun suspend, it works but in android unit test i must use fake and i tried Mockito but it doesn't work. And no examples on the net with hilt, coroutines and mockito
đź‘€ 1
j
Javier
11/05/2020, 1:50 PM
fake != mock
p
pitpit
11/05/2020, 1:52 PM
You never use mockito with hilt ? Only fake classes into test modules ?
c
Casey Brooks
11/05/2020, 3:09 PM
@pitpit Please don’t pin threads. It doesn’t increase visibility any more than a normal post since this channel is relatively low-volume, its obnoxious to those of us watching this channel regularly, and it’s unfair to others who are using this channel properly
p
pitpit
11/05/2020, 3:10 PM
@Casey Brooks sorry t thought it was pinned for me not for all
đź‘Ť 1
g
gildor
11/05/2020, 11:45 PM
mockk has support of suspend functions out of the box
But not sure how this related to Hilt