mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: Enable test coverage and update CI (#4233)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
45d8f5944a
commit
962137ae4d
21 changed files with 140 additions and 126 deletions
|
|
@ -56,6 +56,7 @@ class AndroidApplicationConventionPlugin : Plugin<Project> {
|
|||
getByName("debug") {
|
||||
isDebuggable = true
|
||||
isPseudoLocalesEnabled = true
|
||||
enableAndroidTestCoverage = true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -40,6 +40,12 @@ class AndroidLibraryConventionPlugin : Plugin<Project> {
|
|||
defaultConfig.testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
testOptions.animationsDisabled = true
|
||||
configureFlavors(this)
|
||||
|
||||
buildTypes {
|
||||
getByName("debug") {
|
||||
enableAndroidTestCoverage = true
|
||||
}
|
||||
}
|
||||
}
|
||||
extensions.configure<LibraryAndroidComponentsExtension> {
|
||||
disableUnnecessaryAndroidTests(target)
|
||||
|
|
|
|||
|
|
@ -43,6 +43,9 @@ internal fun Project.configureAndroidCompose(
|
|||
"implementation"(libs.library("androidx-compose-runtime"))
|
||||
"runtimeOnly"(libs.library("androidx-compose-runtime-tracing"))
|
||||
"debugImplementation"(libs.library("androidx-compose-ui-tooling"))
|
||||
|
||||
// Add Espresso explicitly to avoid version mismatch issues on newer Android versions
|
||||
"androidTestImplementation"(libs.library("androidx-test-espresso-core"))
|
||||
}
|
||||
|
||||
extensions.configure<ComposeCompilerGradlePluginExtension> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue