io.qameta.allure.kotlin.Issue.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of allure-kotlin-commons Show documentation
Show all versions of allure-kotlin-commons Show documentation
Module allure-kotlin-commons of Allure Framework.
package io.qameta.allure.kotlin
import io.qameta.allure.kotlin.util.ResultsUtils
import java.lang.annotation.Inherited
/**
* Used to link tests with issues.
*/
@MustBeDocumented
@Inherited
@Retention(AnnotationRetention.RUNTIME)
@Target(
AnnotationTarget.FUNCTION,
AnnotationTarget.PROPERTY_GETTER,
AnnotationTarget.PROPERTY_SETTER,
AnnotationTarget.ANNOTATION_CLASS,
AnnotationTarget.CLASS
)
@LinkAnnotation(type = ResultsUtils.ISSUE_LINK_TYPE)
/**
* Due do compatibility with Java 1.6, Kotlin doesn't support repeatable annotations.
* This annotation is still required in here, because of generic parsing of annotation containers
* @see [AnnotationUtils.extractRepeatable]
*/
@Repeatable
annotation class Issue(val value: String)