summaryrefslogtreecommitdiff
path: root/app/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'app/build.gradle.kts')
-rw-r--r--app/build.gradle.kts10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index 03b240e..42bdbed 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -18,6 +18,7 @@ android {
targetSdk = 34
versionCode = 1
versionName = "1.0"
+ testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
@@ -74,6 +75,15 @@ dependencies {
testImplementation("junit:junit:4.13.2")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.0")
testImplementation("androidx.room:room-testing:2.6.1")
+
+ // Instrumented tests: ReaderExtractor needs a real WebView to run Readability.js, so
+ // extraction-pipeline regression tests can't be plain JVM unit tests. MockWebServer serves
+ // fixture HTML over real http:// -- ReaderExtractor's WebView has allowFileAccess = false
+ // (deliberately, see its own comments), so file:// fixtures wouldn't load.
+ androidTestImplementation("androidx.test.ext:junit:1.2.1")
+ androidTestImplementation("androidx.test:runner:1.6.2")
+ androidTestImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.0")
+ androidTestImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
}
detekt {