testing: add unit test framework

Add junit/espresso alongside a few basic tests.

I am nowhere near close to being "done" with this at all.
This commit is contained in:
Alexander Capehart
2023-01-05 12:27:37 -07:00
parent a10cf1e0c3
commit 78e3739a68
5 changed files with 205 additions and 5 deletions
+9 -4
View File
@@ -18,9 +18,7 @@ android {
minSdk 21
targetSdk 33
buildFeatures {
viewBinding true
}
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
// ExoPlayer, AndroidX, and Material Components all need Java 8 to compile.
@@ -47,6 +45,10 @@ android {
}
}
buildFeatures {
viewBinding true
}
dependenciesInfo {
includeInApk = false
includeInBundle = false
@@ -110,8 +112,11 @@ dependencies {
// Locked below 1.7.0-alpha03 to avoid the same ripple bug
implementation "com.google.android.material:material:1.7.0-alpha02"
// LeakCanary
// Development
debugImplementation "com.squareup.leakcanary:leakcanary-android:2.9.1"
testImplementation "junit:junit:4.13.2"
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
}
spotless {