Try to use regular managed device (not ATD)

This commit is contained in:
Benoit Marty 2022-10-13 17:13:08 +02:00 committed by Benoit Marty
parent 53cb4d2df9
commit 07ef81a8d5
4 changed files with 29 additions and 1 deletions

View File

@ -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.

View File

@ -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']
}

View File

@ -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.

View File

@ -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.