registerIdlingResources deprecation replacement doesn’t work
1. Android Test Orchestrator. Android Test Orchestrator resolves your issue with IdlingResources test fails. dependencies { androidTestUtil ‘androidx.test:orchestrator:1.3.0’ } Configure your build.gradle: android { defaultConfig { testInstrumentationRunner “androidx.test.runner.AndroidJUnitRunner” testInstrumentationRunnerArguments clearPackageData: ‘true’ } testOptions { execution ‘ANDROIDX_TEST_ORCHESTRATOR’ } } Then run your tests: ./gradlew connectedCheck 2. Refactor the code The issue IdlingResources cause tests to fail. … Read more