Gradle, testsL fix ijListenTestTask
This commit is contained in:
+7
-3
@@ -11,7 +11,11 @@ import org.gradle.api.tasks.testing.AbstractTestTask
|
||||
* Experimental test reporting for Intellij Ultimate only
|
||||
*/
|
||||
internal fun ijListenTestTask(task: AbstractTestTask) {
|
||||
Class.forName("org.jetbrains.kotlin.gradle.testing.internal.IjTestListener")
|
||||
?.getMethod("attachTo")
|
||||
?.invoke(null, task)
|
||||
try {
|
||||
Class.forName("org.jetbrains.kotlin.gradle.testing.internal.IjTestListener")
|
||||
?.getMethod("attachTo")
|
||||
?.invoke(null, task)
|
||||
} catch (e: ClassNotFoundException) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user