paparazzi-tests: move to common module
|
@ -8,6 +8,7 @@ plugins {
|
||||||
id("dev.msfjarvis.claw.kotlin-common")
|
id("dev.msfjarvis.claw.kotlin-common")
|
||||||
id("dev.msfjarvis.claw.android-library")
|
id("dev.msfjarvis.claw.android-library")
|
||||||
alias(libs.plugins.aurora.svg.transcoder)
|
alias(libs.plugins.aurora.svg.transcoder)
|
||||||
|
alias(libs.plugins.paparazzi)
|
||||||
}
|
}
|
||||||
|
|
||||||
val transcodeTask =
|
val transcodeTask =
|
||||||
|
@ -38,6 +39,12 @@ dependencies {
|
||||||
implementation(libs.compose.richtext.ui)
|
implementation(libs.compose.richtext.ui)
|
||||||
implementation(libs.kotlinx.coroutines.core)
|
implementation(libs.kotlinx.coroutines.core)
|
||||||
implementation(libs.kotlinx.datetime)
|
implementation(libs.kotlinx.datetime)
|
||||||
|
testImplementation(kotlin("test-junit"))
|
||||||
|
testImplementation(libs.testparameterinjector)
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType<Test>().configureEach {
|
||||||
|
javaLauncher.set(javaToolchains.launcherFor { languageVersion.set(JavaLanguageVersion.of(11)) })
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
|
@ -1,7 +0,0 @@
|
||||||
# paparazzi-tests
|
|
||||||
|
|
||||||
[Paparazzi](https://github.com/cashapp/paparazzi) is a Gradle plugin and library that allows writing
|
|
||||||
Android UI tests that run on the JVM. However, it does not support Kotlin Multiplatform so we're
|
|
||||||
using this Android library module to hide the Multiplatform aspect of the project from Paparazzi. In
|
|
||||||
the future this will be natively supported and we can disperse the tests contained in this module
|
|
||||||
into existing ones.
|
|
|
@ -1,29 +0,0 @@
|
||||||
@file:Suppress("DSL_SCOPE_VIOLATION")
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id("dev.msfjarvis.claw.android-library")
|
|
||||||
id("dev.msfjarvis.claw.kotlin-android")
|
|
||||||
alias(libs.plugins.paparazzi)
|
|
||||||
}
|
|
||||||
|
|
||||||
androidComponents { beforeVariants(selector().all()) { it.enable = it.buildType == "debug" } }
|
|
||||||
|
|
||||||
android {
|
|
||||||
namespace = "dev.msfjarvis.claw.android.tests"
|
|
||||||
buildFeatures { compose = true }
|
|
||||||
composeOptions {
|
|
||||||
useLiveLiterals = false
|
|
||||||
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
testImplementation(kotlin("test-junit"))
|
|
||||||
testImplementation(libs.kotlinx.datetime)
|
|
||||||
testImplementation(libs.testparameterinjector)
|
|
||||||
testImplementation(projects.common)
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType<Test>().configureEach {
|
|
||||||
javaLauncher.set(javaToolchains.launcherFor { languageVersion.set(JavaLanguageVersion.of(11)) })
|
|
||||||
}
|
|