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: libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/native/internal/CommonizerTasks.kt
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/unitTests/CInteropCommonizerTaskTest.kt
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/unitTests/CommonizerTaskTests.kt
Copy file name to clipboardExpand all lines: libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/util/assertions.kt
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -100,12 +100,12 @@ fun Task.assertTaskDependenciesEquals(dependencies: Set<Task>) {
100
100
fun Project.assertContainsTaskWithName(taskName:String): Task {
101
101
this.getKotlinPluginVersion()
102
102
return project.tasks.findByName(taskName)
103
-
?: fail("Expected task with name $taskName in project ${this.path}")
103
+
?: fail("Expected task with name $taskName in project ${this.path}. All tasks: ${project.tasks.names}")
104
104
}
105
105
106
106
fun Project.assertContainsNoTaskWithName(taskName:String) {
107
107
if (taskName in tasks.names) {
108
-
fail("Expected *no* task with name $taskName in project ${this.path}")
108
+
fail("Expected *no* task with name $taskName in project ${this.path}. All tasks: ${project.tasks.names}")
109
109
}
110
110
}
111
111
@@ -209,4 +209,4 @@ inline fun <reified T : Throwable> assertFailsWithChainedCause(block: () -> Unit
209
209
cause = cause.cause
210
210
}
211
211
fail("Expected to fail with ${T::class.java.name} but failed with ${throwable::class.java.name}")
0 commit comments