Add tasks and annotations for Gradle/Jvm and Gradle/Js tests.
We will split our tests into supported platforms, like JVM, Js, etc... Tests for supported Gradle features should be added per platform. To run any test (except daemons) also "all" task was added. ^KT-45745 In Progress
This commit is contained in:
+18
-2
@@ -8,7 +8,7 @@ package org.jetbrains.kotlin.gradle.testbase
|
||||
import org.junit.jupiter.api.Tag
|
||||
|
||||
/**
|
||||
* Add it to test classes performing simple KGP checks.
|
||||
* Add it to test classes performing simple KGP checks (deprecated).
|
||||
*/
|
||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
@@ -18,7 +18,23 @@ annotation class SimpleGradlePluginTests
|
||||
/**
|
||||
* Add it to test classes performing Gradle or Kotlin daemon checks.
|
||||
*/
|
||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS)
|
||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
@Tag("DaemonsKGP")
|
||||
annotation class DaemonsGradlePluginTests
|
||||
|
||||
/**
|
||||
* Add it to tests covering Kotlin Gradle Plugin/JVM platform.
|
||||
*/
|
||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
@Tag("JvmKGP")
|
||||
annotation class JvmGradlePluginTests
|
||||
|
||||
/**
|
||||
* Add it to tests covering Kotlin Gradle Plugin/JS platform.
|
||||
*/
|
||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
@Tag("JsKGP")
|
||||
annotation class JsGradlePluginTests
|
||||
Reference in New Issue
Block a user