Try to use regular managed device (not ATD)
This commit is contained in:
parent
53cb4d2df9
commit
07ef81a8d5
@ -91,6 +91,15 @@ android {
|
||||
// To include Google services, use "google". Else "aosp"
|
||||
systemImageSource = "google"
|
||||
}
|
||||
// Run test with ./gradlew pixel2api30GplayDebugAndroidTest
|
||||
pixel2api30(ManagedVirtualDevice) {
|
||||
// Use device profiles you typically see in Android Studio.
|
||||
device = "Pixel 2"
|
||||
// Use only API levels 27 and higher.
|
||||
apiLevel = 30
|
||||
// To include Google services, use "google". Else "aosp"
|
||||
systemImageSource = "google"
|
||||
}
|
||||
// Ref: https://developer.android.com/studio/test/gradle-managed-devices#gmd-atd
|
||||
// Run test with ./gradlew pixel2api30AtdGplayDebugAndroidTest
|
||||
// Warning: Screenshot tests that depend on hardware rendering currently aren't supported when using ATDs.
|
||||
|
@ -87,5 +87,6 @@ task unitTestsWithCoverage(type: GradleBuild) {
|
||||
task instrumentationTestsWithCoverage(type: GradleBuild) {
|
||||
startParameter.projectProperties.coverage = [enableTestCoverage: true]
|
||||
startParameter.projectProperties['android.testInstrumentationRunnerArguments.notPackage'] = 'im.vector.app.ui'
|
||||
tasks = [':vector-app:pixel2api30AtdGplayDebugAndroidTest', ':vector:pixel2api30AtdDebugAndroidTest', 'matrix-sdk-android:pixel2api30AtdDebugAndroidTest']
|
||||
// tasks = [':vector-app:pixel2api30AtdGplayDebugAndroidTest', ':vector:pixel2api30AtdDebugAndroidTest', 'matrix-sdk-android:pixel2api30AtdDebugAndroidTest']
|
||||
tasks = [':vector-app:pixel2api30GplayDebugAndroidTest', ':vector:pixel2api30DebugAndroidTest', 'matrix-sdk-android:pixel2api30DebugAndroidTest']
|
||||
}
|
||||
|
@ -225,6 +225,15 @@ android {
|
||||
// To include Google services, use "google". Else "aosp"
|
||||
systemImageSource = "google"
|
||||
}
|
||||
// Run test with ./gradlew pixel2api30GplayDebugAndroidTest
|
||||
pixel2api30(ManagedVirtualDevice) {
|
||||
// Use device profiles you typically see in Android Studio.
|
||||
device = "Pixel 2"
|
||||
// Use only API levels 27 and higher.
|
||||
apiLevel = 30
|
||||
// To include Google services, use "google". Else "aosp"
|
||||
systemImageSource = "google"
|
||||
}
|
||||
// Ref: https://developer.android.com/studio/test/gradle-managed-devices#gmd-atd
|
||||
// Run test with ./gradlew pixel2api30AtdGplayDebugAndroidTest
|
||||
// Warning: Screenshot tests that depend on hardware rendering currently aren't supported when using ATDs.
|
||||
|
@ -80,6 +80,15 @@ android {
|
||||
// To include Google services, use "google". Else "aosp"
|
||||
systemImageSource = "google"
|
||||
}
|
||||
// Run test with ./gradlew pixel2api30GplayDebugAndroidTest
|
||||
pixel2api30(ManagedVirtualDevice) {
|
||||
// Use device profiles you typically see in Android Studio.
|
||||
device = "Pixel 2"
|
||||
// Use only API levels 27 and higher.
|
||||
apiLevel = 30
|
||||
// To include Google services, use "google". Else "aosp"
|
||||
systemImageSource = "google"
|
||||
}
|
||||
// Ref: https://developer.android.com/studio/test/gradle-managed-devices#gmd-atd
|
||||
// Run test with ./gradlew pixel2api30AtdGplayDebugAndroidTest
|
||||
// Warning: Screenshot tests that depend on hardware rendering currently aren't supported when using ATDs.
|
||||
|
Loading…
Reference in New Issue
Block a user