Skip to content

Commit

Permalink
[ConfigSample] Change API level to 26 which is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
JolandaVerhoef committed Sep 16, 2021
1 parent 62d4253 commit d20a9b7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/TestConfigurationSample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:

- name: Run regression tests
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew -i pixel2api23DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceApi23
run: ./gradlew -i pixel2api26DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceApi26

- 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 @@ -58,9 +58,9 @@ android {
systemImageSource = "aosp"
abi = "x86"
}
pixel2api23(ManagedVirtualDevice) {
pixel2api26(ManagedVirtualDevice) {
device = "Pixel 2"
apiLevel = 23
apiLevel = 26
systemImageSource = "aosp"
abi = "x86"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ class MainActivityTests {
*
* See the Github Actions setup of this project for an example.
*/
@Test @TestDeviceApi23
fun regressionTestKnownIssueApi23() {
@Test @TestDeviceApi26
fun regressionTestKnownIssueApi26() {
// Add instrumented tests here
runBlocking { delay(10000) }
Assert.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 23 regression bugs.
* Annotate tests with this annotation when testing API 26 regression bugs.
*/
annotation class TestDeviceApi23
annotation class TestDeviceApi26

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

0 comments on commit d20a9b7

Please sign in to comment.