[Gradle] Fix Jvm Toolchain Android tests are not running on CI
JUnit5 combines tags and then applies to this combined list filters from the test task. If this list contains any excluded tag - test will be ignored. ^KT-59587 In Progress
This commit is contained in:
committed by
Space Team
parent
05ce873d2a
commit
36f748cbcc
@@ -47,6 +47,9 @@ compile tests and run them. This should reduce test execution time.
|
|||||||
a lot of output, that slows down test execution.
|
a lot of output, that slows down test execution.
|
||||||
- Add `@DisplayName(...)` with meaningful description both for test class and methods inside. This will allow developers easier
|
- Add `@DisplayName(...)` with meaningful description both for test class and methods inside. This will allow developers easier
|
||||||
to understand what test is about.
|
to understand what test is about.
|
||||||
|
- Add to test related Kotlin tag. For example for Kotlin/Jvm tests - `@JvmGradlePluginTests`. Other available tags are located nearby
|
||||||
|
`@JvmGradlePluginTests` - check yourself what suites best for the test. You could add tag onto test suite once, but then all tests
|
||||||
|
in test suite should be for the related tag. Preferably add tag for each test.
|
||||||
- Consider using [Gradle Plugin DSL](https://docs.gradle.org/current/userguide/plugins.html#sec:plugins_block) while adding new/modifying
|
- Consider using [Gradle Plugin DSL](https://docs.gradle.org/current/userguide/plugins.html#sec:plugins_block) while adding new/modifying
|
||||||
existing test projects.
|
existing test projects.
|
||||||
|
|
||||||
|
|||||||
+26
-1
@@ -16,10 +16,10 @@ import org.junit.jupiter.api.DisplayName
|
|||||||
import java.io.File
|
import java.io.File
|
||||||
import kotlin.io.path.appendText
|
import kotlin.io.path.appendText
|
||||||
|
|
||||||
@JvmGradlePluginTests
|
|
||||||
@DisplayName("Kotlin Java Toolchain support")
|
@DisplayName("Kotlin Java Toolchain support")
|
||||||
class KotlinJavaToolchainTest : KGPBaseTest() {
|
class KotlinJavaToolchainTest : KGPBaseTest() {
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@GradleTest
|
@GradleTest
|
||||||
@DisplayName("Should use by default same jvm as Gradle daemon for jdkHome")
|
@DisplayName("Should use by default same jvm as Gradle daemon for jdkHome")
|
||||||
internal fun byDefaultShouldUseGradleJDK(gradleVersion: GradleVersion) {
|
internal fun byDefaultShouldUseGradleJDK(gradleVersion: GradleVersion) {
|
||||||
@@ -33,6 +33,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@GradleTest
|
@GradleTest
|
||||||
@DisplayName("Should use provided jdk location to compile Kotlin sources")
|
@DisplayName("Should use provided jdk location to compile Kotlin sources")
|
||||||
internal fun customJdkHomeLocation(gradleVersion: GradleVersion) {
|
internal fun customJdkHomeLocation(gradleVersion: GradleVersion) {
|
||||||
@@ -53,6 +54,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@GradleTest
|
@GradleTest
|
||||||
@DisplayName("KotlinCompile task should use build cache when using provided JDK")
|
@DisplayName("KotlinCompile task should use build cache when using provided JDK")
|
||||||
internal fun customJdkBuildCache(gradleVersion: GradleVersion) {
|
internal fun customJdkBuildCache(gradleVersion: GradleVersion) {
|
||||||
@@ -100,6 +102,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Kotlin compile task should reuse build cache when toolchain is set and build is happening on different JDKs")
|
@DisplayName("Kotlin compile task should reuse build cache when toolchain is set and build is happening on different JDKs")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun differentBuildJDKBuildCacheHit(gradleVersion: GradleVersion) {
|
internal fun differentBuildJDKBuildCacheHit(gradleVersion: GradleVersion) {
|
||||||
@@ -133,6 +136,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@GradleTest
|
@GradleTest
|
||||||
@DisplayName("Kotlin compile task should not use build cache on using different JDK versions")
|
@DisplayName("Kotlin compile task should not use build cache on using different JDK versions")
|
||||||
internal fun differentJdkBuildCacheMiss(gradleVersion: GradleVersion) {
|
internal fun differentJdkBuildCacheMiss(gradleVersion: GradleVersion) {
|
||||||
@@ -169,6 +173,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Kapt task should use only process worker isolation when kotlin java toolchain is set")
|
@DisplayName("Kapt task should use only process worker isolation when kotlin java toolchain is set")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun kaptTasksShouldUseProcessWorkersIsolation(gradleVersion: GradleVersion) {
|
internal fun kaptTasksShouldUseProcessWorkersIsolation(gradleVersion: GradleVersion) {
|
||||||
@@ -203,6 +208,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Kapt task should use worker no-isolation mode when build is using Gradle JDK")
|
@DisplayName("Kapt task should use worker no-isolation mode when build is using Gradle JDK")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun kaptTasksShouldUseNoIsolationModeOnDefaultJvm(gradleVersion: GradleVersion) {
|
internal fun kaptTasksShouldUseNoIsolationModeOnDefaultJvm(gradleVersion: GradleVersion) {
|
||||||
@@ -217,6 +223,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Kapt tasks with custom JDK should be cacheable")
|
@DisplayName("Kapt tasks with custom JDK should be cacheable")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun kaptTasksWithCustomJdkCacheable(gradleVersion: GradleVersion) {
|
internal fun kaptTasksWithCustomJdkCacheable(gradleVersion: GradleVersion) {
|
||||||
@@ -266,6 +273,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Kapt tasks with default JDK and different isolation modes should be cacheable")
|
@DisplayName("Kapt tasks with default JDK and different isolation modes should be cacheable")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun kaptCacheableOnSwitchingIsolationModeAndDefaultJDK(gradleVersion: GradleVersion) {
|
internal fun kaptCacheableOnSwitchingIsolationModeAndDefaultJDK(gradleVersion: GradleVersion) {
|
||||||
@@ -302,6 +310,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Should allow to set JDK version for tasks via Java toolchain")
|
@DisplayName("Should allow to set JDK version for tasks via Java toolchain")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun setJdkUsingJavaToolchain(gradleVersion: GradleVersion) {
|
internal fun setJdkUsingJavaToolchain(gradleVersion: GradleVersion) {
|
||||||
@@ -316,6 +325,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Should allow to set Java toolchain via extension")
|
@DisplayName("Should allow to set Java toolchain via extension")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun setJdkUsingJavaToolchainViaExtension(gradleVersion: GradleVersion) {
|
internal fun setJdkUsingJavaToolchainViaExtension(gradleVersion: GradleVersion) {
|
||||||
@@ -330,6 +340,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Toolchain should be correctly supported in multiplatform plugin jvm targets")
|
@DisplayName("Toolchain should be correctly supported in multiplatform plugin jvm targets")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun toolchainCorrectlySupportedInMPPlugin(gradleVersion: GradleVersion) {
|
internal fun toolchainCorrectlySupportedInMPPlugin(gradleVersion: GradleVersion) {
|
||||||
@@ -345,6 +356,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Should set 'jvmTarget' option if user does not specify it explicitly via jdk setter")
|
@DisplayName("Should set 'jvmTarget' option if user does not specify it explicitly via jdk setter")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun shouldSetJvmTargetNonSpecifiedByUserViaSetJdk(gradleVersion: GradleVersion) {
|
internal fun shouldSetJvmTargetNonSpecifiedByUserViaSetJdk(gradleVersion: GradleVersion) {
|
||||||
@@ -373,6 +385,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Should not override user specified 'jvmTarget' option via jdk setter")
|
@DisplayName("Should not override user specified 'jvmTarget' option via jdk setter")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun shouldNotOverrideUserJvmTargetViaSetJDK(gradleVersion: GradleVersion) {
|
internal fun shouldNotOverrideUserJvmTargetViaSetJDK(gradleVersion: GradleVersion) {
|
||||||
@@ -395,6 +408,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Should set 'jvmTarget' option if user does not specify it explicitly via toolchain setter")
|
@DisplayName("Should set 'jvmTarget' option if user does not specify it explicitly via toolchain setter")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun shouldSetJvmTargetNonSpecifiedByUserViaToolchain(gradleVersion: GradleVersion) {
|
internal fun shouldSetJvmTargetNonSpecifiedByUserViaToolchain(gradleVersion: GradleVersion) {
|
||||||
@@ -412,6 +426,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Should not override user specified 'jvmTarget' option via toolchain setter")
|
@DisplayName("Should not override user specified 'jvmTarget' option via toolchain setter")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun shouldNotOverrideUserSpecifiedJvmTargetViaToolchain(gradleVersion: GradleVersion) {
|
internal fun shouldNotOverrideUserSpecifiedJvmTargetViaToolchain(gradleVersion: GradleVersion) {
|
||||||
@@ -438,6 +453,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Setting toolchain via java extension should also affect Kotlin compilations")
|
@DisplayName("Setting toolchain via java extension should also affect Kotlin compilations")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun settingToolchainViaJavaShouldAlsoWork(gradleVersion: GradleVersion) {
|
internal fun settingToolchainViaJavaShouldAlsoWork(gradleVersion: GradleVersion) {
|
||||||
@@ -464,6 +480,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Setting toolchain via java extension should update jvm-target argument on eager task creation")
|
@DisplayName("Setting toolchain via java extension should update jvm-target argument on eager task creation")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun settingToolchainViaJavaUpdateJvmTarget(gradleVersion: GradleVersion) {
|
internal fun settingToolchainViaJavaUpdateJvmTarget(gradleVersion: GradleVersion) {
|
||||||
@@ -496,6 +513,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Build should not produce warnings when '-no-jdk' option is present")
|
@DisplayName("Build should not produce warnings when '-no-jdk' option is present")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun noWarningOnNoJdkOptionPresent(gradleVersion: GradleVersion) {
|
internal fun noWarningOnNoJdkOptionPresent(gradleVersion: GradleVersion) {
|
||||||
@@ -547,6 +565,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Toolchain should not make an exception when build is running on JDK 11, but toolchain is set to JDK 1.8")
|
@DisplayName("Toolchain should not make an exception when build is running on JDK 11, but toolchain is set to JDK 1.8")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun shouldNotRaiseErrorOnJDK11withJDK1_8Toolchain(gradleVersion: GradleVersion) {
|
internal fun shouldNotRaiseErrorOnJDK11withJDK1_8Toolchain(gradleVersion: GradleVersion) {
|
||||||
@@ -561,6 +580,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("JVM target shouldn't be changed when toolchain is not configured")
|
@DisplayName("JVM target shouldn't be changed when toolchain is not configured")
|
||||||
@GradleTestVersions(maxVersion = TestVersions.Gradle.G_7_6)
|
@GradleTestVersions(maxVersion = TestVersions.Gradle.G_7_6)
|
||||||
@GradleTest
|
@GradleTest
|
||||||
@@ -596,6 +616,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Kotlin toolchain should support configuration cache")
|
@DisplayName("Kotlin toolchain should support configuration cache")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun testConfigurationCache(gradleVersion: GradleVersion) {
|
internal fun testConfigurationCache(gradleVersion: GradleVersion) {
|
||||||
@@ -613,6 +634,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Should work with configuration cache when toolchain is not configured")
|
@DisplayName("Should work with configuration cache when toolchain is not configured")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun testConfigurationCacheNoToolchain(gradleVersion: GradleVersion) {
|
internal fun testConfigurationCacheNoToolchain(gradleVersion: GradleVersion) {
|
||||||
@@ -626,6 +648,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Toolchain simplified method with JDK version in extension is working")
|
@DisplayName("Toolchain simplified method with JDK version in extension is working")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun toolchainSimplifiedConfiguration(gradleVersion: GradleVersion) {
|
internal fun toolchainSimplifiedConfiguration(gradleVersion: GradleVersion) {
|
||||||
@@ -660,6 +683,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("KT-55004: Should use non-default toolchain for parent project")
|
@DisplayName("KT-55004: Should use non-default toolchain for parent project")
|
||||||
@GradleTest
|
@GradleTest
|
||||||
internal fun toolchainFromParentProject(gradleVersion: GradleVersion) {
|
internal fun toolchainFromParentProject(gradleVersion: GradleVersion) {
|
||||||
@@ -702,6 +726,7 @@ class KotlinJavaToolchainTest : KGPBaseTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmGradlePluginTests
|
||||||
@DisplayName("Toolchain should not override Jvm target configured in project level DSL")
|
@DisplayName("Toolchain should not override Jvm target configured in project level DSL")
|
||||||
@GradleTestVersions(maxVersion = TestVersions.Gradle.G_7_6)
|
@GradleTestVersions(maxVersion = TestVersions.Gradle.G_7_6)
|
||||||
@GradleTest
|
@GradleTest
|
||||||
|
|||||||
+28
@@ -9,6 +9,10 @@ import org.junit.jupiter.api.Tag
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Add it to test classes performing Gradle or Kotlin daemon checks.
|
* Add it to test classes performing Gradle or Kotlin daemon checks.
|
||||||
|
*
|
||||||
|
* You could add tag onto test suite once, but then all tests
|
||||||
|
* in test suite should be for the related tag.
|
||||||
|
* Preferably add tag for each test.
|
||||||
*/
|
*/
|
||||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
||||||
@Retention(AnnotationRetention.RUNTIME)
|
@Retention(AnnotationRetention.RUNTIME)
|
||||||
@@ -17,6 +21,10 @@ annotation class DaemonsGradlePluginTests
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Add it to tests covering Kotlin Gradle Plugin/JVM platform.
|
* Add it to tests covering Kotlin Gradle Plugin/JVM platform.
|
||||||
|
*
|
||||||
|
* You could add tag onto test suite once, but then all tests
|
||||||
|
* in test suite should be for the related tag.
|
||||||
|
* Preferably add tag for each test.
|
||||||
*/
|
*/
|
||||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
||||||
@Retention(AnnotationRetention.RUNTIME)
|
@Retention(AnnotationRetention.RUNTIME)
|
||||||
@@ -25,6 +33,10 @@ annotation class JvmGradlePluginTests
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Add it to tests covering Kotlin Gradle Plugin/JS platform.
|
* Add it to tests covering Kotlin Gradle Plugin/JS platform.
|
||||||
|
*
|
||||||
|
* You could add tag onto test suite once, but then all tests
|
||||||
|
* in test suite should be for the related tag.
|
||||||
|
* Preferably add tag for each test.
|
||||||
*/
|
*/
|
||||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
||||||
@Retention(AnnotationRetention.RUNTIME)
|
@Retention(AnnotationRetention.RUNTIME)
|
||||||
@@ -33,6 +45,10 @@ annotation class JsGradlePluginTests
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Add it to tests covering Kotlin Gradle Plugin/Native platform.
|
* Add it to tests covering Kotlin Gradle Plugin/Native platform.
|
||||||
|
*
|
||||||
|
* You could add tag onto test suite once, but then all tests
|
||||||
|
* in test suite should be for the related tag.
|
||||||
|
* Preferably add tag for each test.
|
||||||
*/
|
*/
|
||||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
||||||
@Retention(AnnotationRetention.RUNTIME)
|
@Retention(AnnotationRetention.RUNTIME)
|
||||||
@@ -41,6 +57,10 @@ annotation class NativeGradlePluginTests
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Add it to tests covering Kotlin Multiplatform Gradle plugin.
|
* Add it to tests covering Kotlin Multiplatform Gradle plugin.
|
||||||
|
*
|
||||||
|
* You could add tag onto test suite once, but then all tests
|
||||||
|
* in test suite should be for the related tag.
|
||||||
|
* Preferably add tag for each test.
|
||||||
*/
|
*/
|
||||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
||||||
@Retention(AnnotationRetention.RUNTIME)
|
@Retention(AnnotationRetention.RUNTIME)
|
||||||
@@ -49,6 +69,10 @@ annotation class MppGradlePluginTests
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Add it to the tests covering Kotlin Android Gradle plugin.
|
* Add it to the tests covering Kotlin Android Gradle plugin.
|
||||||
|
*
|
||||||
|
* You could add tag onto test suite once, but then all tests
|
||||||
|
* in test suite should be for the related tag.
|
||||||
|
* Preferably add tag for each test.
|
||||||
*/
|
*/
|
||||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
||||||
@Retention(AnnotationRetention.RUNTIME)
|
@Retention(AnnotationRetention.RUNTIME)
|
||||||
@@ -59,6 +83,10 @@ annotation class AndroidGradlePluginTests
|
|||||||
* Add it the tests that are not covered by tags above.
|
* Add it the tests that are not covered by tags above.
|
||||||
*
|
*
|
||||||
* Usually it would be tests for kapt, serialization plugins, etc...
|
* Usually it would be tests for kapt, serialization plugins, etc...
|
||||||
|
*
|
||||||
|
* You could add tag onto test suite once, but then all tests
|
||||||
|
* in test suite should be for the related tag.
|
||||||
|
* Preferably add tag for each test.
|
||||||
*/
|
*/
|
||||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.FUNCTION)
|
||||||
@Retention(AnnotationRetention.RUNTIME)
|
@Retention(AnnotationRetention.RUNTIME)
|
||||||
|
|||||||
Reference in New Issue
Block a user