Questions tagged [gradle-android-test-plugi]

23 questions
1
vote
0 answers

Gradle test module for Android module

I start develop new Android project using gradle as assemeler. I need to set test enviroment for it. I know way to set test as flavor of my project. But I want to have two different module: app, appTest. app is my project I develop and appTest is…
busylee
  • 2,540
  • 1
  • 16
  • 35
0
votes
1 answer

my android instromented tests have no results

I am trying to run instrumented tests for my fragments and appears nothing works the result shows nothing no pass no errors nothing like this answer :answer link I tried unchecking the run instrumented test with Gradle put the result is nothing…
0
votes
0 answers

Android test module classloader obfuscation

I'm testing my :app module with a specific :test module. The test module applies the com.android.test plugin and configures release to test the obfuscated release variant. Now both modules use kotlin.Result and obfuscate it with the same name. The…
0
votes
1 answer

Firebase Test Lab instrumented test for test method annotated by size

In my project I am using the following commands to generate my app APK and instrumented test APK. ./gradlew :app:assembleDebug ./gradlew :app:assembleDebugAndroidTest Using the generated files I am triggering a test in Test Lab using gcloud, which…
0
votes
2 answers

Skip test on android on specific task of Azure pipeline

I have an Android library project with two Unit test, and those tasks defined in the Gradle: task("cleanProject", dependsOn: "clean", group: "myGroup") task("generateAAR", dependsOn: "assembleRelease", group: "myGroup") task("copyAAR", type: Copy,…
0
votes
1 answer

Android Studio build fails after a dependency added

Anyone can understand this error message and explain it to me? Error: Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.1) from [com.android.support:cardview-v7:26.0.1] AndroidManifest.xml:25:13-35 is…
0
votes
1 answer

Cannot import AndroidJUnit4 and ActivityTestRule

I'm trying to make a class for instrumentation test. This class is in the androidTest folder app\src\androidTest\java\.... However, AndroidJUnit4 and ActivityTestRule cannot resolve. In the import statement, import…
Robin
  • 1,487
  • 4
  • 17
  • 29
0
votes
1 answer

robolelectric setup issue -- how to start with roboelectric framework

I am starting with Robolectric framework 3.0. for android testing. I am goingthrough there site and they mention the first step as adding in build gradle testCompile "org.robolectric:robolectric:3.0" I have done that and did a complete clean…
indi mars
  • 133
  • 3
  • 8
1
2