File tree Expand file tree Collapse file tree
java/com/reddit/indicatorfastscroll Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,10 +2,3 @@ language: android
22before_install :
33 - mkdir "$ANDROID_HOME/licenses" || true
44 - echo -e "\nd56f5187479451eabf01fb78af6dfcb131a6481e\n24333f8a63b6825ea9c5514f83c2829b004d1fee" > "$ANDROID_HOME/licenses/android-sdk-license"
5- before_script :
6- - sdkmanager "system-images;android-21;default;armeabi-v7a"
7- - sdkmanager "emulator"
8- - echo no | avdmanager create avd -f -n fastscroller_test_emulator -k "system-images;android-21;default;armeabi-v7a"
9- - $ANDROID_HOME/emulator/emulator -avd fastscroller_test_emulator -no-audio -no-window &
10- - android-wait-for-emulator
11- - adb shell input keyevent 82 &
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ android {
1414 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
1515 }
1616
17+ testOptions. unitTests. includeAndroidResources = true
18+
1719 // TODO replace with https://issuetracker.google.com/issues/72050365 once released.
1820 libraryVariants. all {
1921 it. generateBuildConfig. enabled = false
@@ -30,8 +32,8 @@ dependencies {
3032
3133 implementation ' androidx.core:core-ktx:1.0.1'
3234
33- testImplementation ' junit :junit:4.12 '
34- androidTestImplementation " androidx.test.ext:junit :1.0.0 "
35- androidTestImplementation ' androidx.test:rules:1.1 .0'
36- androidTestImplementation ' androidx.test.espresso:espresso-core:3.1.0 '
35+ testImplementation " androidx.test.ext :junit:1.1.1 "
36+ testImplementation ' androidx.test:rules :1.2.0 '
37+ testImplementation ' androidx.test.espresso:espresso-core:3.2 .0'
38+ testImplementation ' org.robolectric:robolectric:4.3 '
3739}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -13,8 +13,12 @@ import org.junit.Assert.assertEquals
1313import org.junit.Rule
1414import org.junit.Test
1515import org.junit.runner.RunWith
16+ import org.robolectric.annotation.Config
17+ import org.robolectric.annotation.LooperMode
1618
1719@RunWith(AndroidJUnit4 ::class )
20+ @Config(sdk = [21 ], qualifiers = " xhdpi" )
21+ @LooperMode(LooperMode .Mode .PAUSED )
1822@LargeTest
1923class Tests {
2024
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments