Kavita
10/02/2020, 5:26 PMMockWebSerever
& Awaitility
to handle API mocking & async operation.
The .gradle
file also has Android Orchestrator & clearPackageData declared. All the tests are independent.
Still, the issue persists.
Can someone help me to fix this issue?
Please let me know if you need more details about tests & Android version.John O'Reilly
10/02/2020, 5:28 PMJohn O'Reilly
10/02/2020, 5:29 PMKavita
10/02/2020, 5:32 PMKavita
10/02/2020, 5:35 PMKavita
10/02/2020, 5:43 PMJohn O'Reilly
10/02/2020, 5:43 PMKavita
10/02/2020, 5:45 PMfaogustavo
10/02/2020, 6:51 PMKavita
10/02/2020, 7:25 PMandroidTestImplementation 'org.mockito:mockito-android:2.18.3'
implementation 'com.squareup.okhttp3:mockwebserver:3.8.1'
Kavita
10/02/2020, 7:26 PMfaogustavo
10/02/2020, 7:27 PMKavita
10/02/2020, 7:28 PMemmano
10/05/2020, 7:51 PMemmano
10/05/2020, 7:55 PMemmano
10/05/2020, 7:56 PMKavita
10/06/2020, 4:25 AMAwaitility
along with MockWebServer for API test cases, to deal with asynchronous API operations. I am simply using Retrofit but in that flow from ViewModel to Repository I have to deal with different callbacks.
That is why I had used Awaitility.
Kavita
10/06/2020, 4:30 AMI am assuming Awaitility tells Espresso when your app is Idle? Does it use an IdlingResource?Yeah @emmano Awaitility is used for the same purpose, when u have to deal with asynchronous functionality and want to add some waiting time. As I wanted to avoid usage of
SystemClock.sleep(..)
in my test cases. It doesn't use IdlingResource.emmano
10/07/2020, 1:24 PMKavita
10/07/2020, 6:36 PM