While running Espresso test cases, we need to use JUnit. To use JUnit4 classes, we have to specify AndroidJunitRunner as the default test instrumentation runner in the project. Out of the following code snippets, pick the correct one that does this required task without throwing any error:
android { Config { testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } }
android { testConfig { testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } }
android { defaultConfig { testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } }
android { androidxConfig { testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } }
To get all Infosys Certified Espresso Tester Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee