Skip to content

Commit

Permalink
[TestConfigurationSample] Change API26 to API27 as 26 is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
JolandaVerhoef committed Mar 18, 2022
1 parent 95c1e44 commit fddb463
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/TestConfigurationSample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ jobs:
~/.android/gradle/avd/dev30_aosp_x86_64_Pixel_2.*
key: pixel2api30

- name: Cache pixel2api26 system image
- name: Cache pixel2api27 system image
uses: actions/cache@v2
with:
path: ~/.android/gradle/avd/dev26_aosp_x86_Pixel_2.*
key: pixel2api26
path: ~/.android/gradle/avd/dev27_aosp_x86_Pixel_2.*
key: pixel2api27

- name: Cache nexus9api29 system image
uses: actions/cache@v2
Expand All @@ -99,7 +99,7 @@ jobs:

- name: Run regression tests
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew -i pixel2api26DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceApi26 -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"
run: ./gradlew -i pixel2api27DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceApi27 -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"

- name: Run large screen tests
working-directory: ${{ env.SAMPLE_PATH }}
Expand Down
4 changes: 2 additions & 2 deletions TestConfigurationSample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ android {
systemImageSource = "aosp"
abi = "x86"
}
pixel2api26(com.android.build.api.dsl.ManagedVirtualDevice) {
pixel2api27(com.android.build.api.dsl.ManagedVirtualDevice) {
device = "Pixel 2"
apiLevel = 26
apiLevel = 267
systemImageSource = "aosp"
abi = "x86"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class MainActivityTests {
*
* See the Github Actions setup of this project for an example.
*/
@Test @TestDeviceApi26
fun regressionTestKnownIssueApi26() {
@Test @TestDeviceApi27
fun regressionTestKnownIssueApi27() {
// Add instrumented tests here
runBlocking { delay(10000) }
assertTrue(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
package com.example.android.testing.testconfigurationsample

/**
* Annotate tests with this annotation when testing API 26 regression bugs.
* Annotate tests with this annotation when testing API 27 regression bugs.
*/
annotation class TestDeviceApi26
annotation class TestDeviceApi27

/**
* Annotate tests with this annotation when testing large-screen specific features.
Expand Down

0 comments on commit fddb463

Please sign in to comment.