You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kover-gradle-plugin/src/functionalTest/kotlin/kotlinx/kover/gradle/plugin/test/functional/cases/ArtifactGenerationTests.kt
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,20 @@ internal class ArtifactGenerationTests {
25
25
}
26
26
}
27
27
28
+
/**
29
+
* Kover generation tasks compute a cache key based on the content of the relative paths
30
+
* in their input field. If there are no additional inputs defiend that differentiate task input
31
+
* between projects then the cache key of the generate tasks in one project is the same as the cache key
32
+
* in other projects.
33
+
*/
34
+
@GeneratedTest
35
+
fun BuildConfigurator.testBuildCacheEntriesAreNotReusedAmongEmptyProjects() {
36
+
addProjectWithKover { }
37
+
addProjectWithKover(":project-a", "project-a") {}
38
+
addProjectWithKover(":project-b", "project-b") {}
39
+
run("check", "--build-cache") {}
40
+
}
41
+
28
42
/**
29
43
* Check that Kover artifact files are not resolved during the task dependency tree construction process.
Copy file name to clipboardExpand all lines: kover-gradle-plugin/src/main/kotlin/kotlinx/kover/gradle/plugin/tasks/services/KoverArtifactGenerationTask.kt
0 commit comments