androidx-test

AndroidTests stopped building after adding androidx.fragment:fragment-testing dependency

邮差的信 提交于 2020-04-13 07:02:28
问题 After I have added fragment-testing dependency to my project: // Testing dependencies espressoVersion = '3.2.0-beta01' testCoreVersion = '1.1.0' runnerVersion = '1.1.0' extJunitVersion = '1.1.0' testRulesVersion = '1.1.0' fragmentVersion = '1.1.0-alpha09' orchestratorVersion = '1.1.0' uiAutomatorVersion = '2.2.0' junitVersion = '4.12' mockitoVersion = '2.7.22' robolectricVersion = '4.2.1' liveDataTestingVersion = '1.1.0' androidArchCoreTestingVersion = '2.0.0' androidTestImplementation(

Robolectric AndroidX fragments NoClassDefFoundError

吃可爱长大的小学妹 提交于 2020-04-10 07:23:30
问题 After migration of code and tests to AndroidX , all seems to work pretty well, however Robolectric junit tests for two fragments are failing due to NoClassDefFoundError: androidx/fragment/testing/R$style exception. The stack trace: java.lang.NoClassDefFoundError: androidx/fragment/testing/R$style at androidx.fragment.app.testing.FragmentScenario$EmptyFragmentActivity.onCreate(FragmentScenario.java:79) at android.app.Activity.performCreate(Activity.java:5933) at android.app.Instrumentation

Robolectric AndroidX fragments NoClassDefFoundError

旧时模样 提交于 2020-04-10 07:21:25
问题 After migration of code and tests to AndroidX , all seems to work pretty well, however Robolectric junit tests for two fragments are failing due to NoClassDefFoundError: androidx/fragment/testing/R$style exception. The stack trace: java.lang.NoClassDefFoundError: androidx/fragment/testing/R$style at androidx.fragment.app.testing.FragmentScenario$EmptyFragmentActivity.onCreate(FragmentScenario.java:79) at android.app.Activity.performCreate(Activity.java:5933) at android.app.Instrumentation

Robolectric AndroidX fragments NoClassDefFoundError

时间秒杀一切 提交于 2020-04-10 07:21:07
问题 After migration of code and tests to AndroidX , all seems to work pretty well, however Robolectric junit tests for two fragments are failing due to NoClassDefFoundError: androidx/fragment/testing/R$style exception. The stack trace: java.lang.NoClassDefFoundError: androidx/fragment/testing/R$style at androidx.fragment.app.testing.FragmentScenario$EmptyFragmentActivity.onCreate(FragmentScenario.java:79) at android.app.Activity.performCreate(Activity.java:5933) at android.app.Instrumentation

Android Test Orchestrator not working with Android X

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 08:26:46
问题 I have recently migrated my project to use AndroidX, and have configured test orchestrator for my espresso tests on gradle using the following docs: https://developer.android.com/training/testing/junit-runner#using-android-test-orchestrator I have the dependency: androidTestUtil 'androidx.test:orchestrator:1.1.0-beta01' However, none of my tests are executed and looks like they fail when running gradle runs the following adb shell command i.e: adb shell 'CLASSPATH=$(pm path android.support

Android Test Orchestrator not working with Android X

醉酒当歌 提交于 2019-12-04 02:19:59
I have recently migrated my project to use AndroidX, and have configured test orchestrator for my espresso tests on gradle using the following docs: https://developer.android.com/training/testing/junit-runner#using-android-test-orchestrator I have the dependency: androidTestUtil 'androidx.test:orchestrator:1.1.0-beta01' However, none of my tests are executed and looks like they fail when running gradle runs the following adb shell command i.e: adb shell 'CLASSPATH=$(pm path android.support.test.services) app_process / \ android.support.test.services.shellexecutor.ShellMain am instrument -w -e