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:
parent
f8fa218146
commit
4d6b37f157
2 changed files with 4 additions and 20 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue