Merge unit, screenshot tests and coverage in a single CI call (#3593)

* Merge unit, screenshot tests and coverage tasks in a single CI call

* Disable gradle daemon too since it's all in a single gradle call now

* Make Kover upload the HTML reports on failure too
This commit is contained in:
Jorge Martin Espinosa 2024-10-03 15:38:08 +02:00 committed by GitHub
parent f8fa218146
commit 4d6b37f157
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 20 deletions

View file

@ -19,16 +19,6 @@ android {
namespace = "ui"
}
// Workaround: `kover` tasks somehow trigger the screenshot tests with a broken configuration, removing
// any previous test results and not creating new ones. This is a workaround to disable the screenshot tests
// when the `kover` tasks are detected.
tasks.withType<Test> {
if (project.gradle.startParameter.taskNames.any { it.contains("kover", ignoreCase = true) }) {
println("WARNING: Kover task detected, disabling screenshot test task $name.")
isEnabled = false
}
}
dependencies {
// Paparazzi 1.3.2 workaround (see https://github.com/cashapp/paparazzi/blob/master/CHANGELOG.md#132---2024-01-13)
constraints.add("testImplementation", "com.google.guava:guava") {