Package io.qameta.allure.gradle.adapter
Class AllureAdapterExtension
-
- All Implemented Interfaces:
public class AllureAdapterExtensionConfigures Allure raw result adapters (e.g. junit5, testng, ...) as
allure { adapter {...extension.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringNAMEpublic final static StringEXECUTOR_FILE_NAMEpublic final static ERROR CLASS: Unresolved name: DEFAULT_ALLURE_JAVA_VERSIONDEFAULT_ALLURE_JAVA_VERSIONpublic final static ERROR CLASS: Unresolved name: DEFAULT_ASPECTJ_VERSIONDEFAULT_ASPECTJ_VERSIONprivate final Property<String>allureJavaVersionprivate final Property<String>aspectjVersionprivate final Property<Boolean>autoconfigureprivate final Property<Boolean>autoconfigureListenersprivate final Property<Boolean>autoconfigureJavadocDescriptionsprivate final Property<Boolean>aspectjWeaverprivate final RegularFilePropertycategoriesFileprivate final DirectoryPropertyresultsDirprivate final AdapterHandlerframeworks
-
Constructor Summary
Constructors Constructor Description AllureAdapterExtension(Project project, ObjectFactory objects)
-
Method Summary
Modifier and Type Method Description final Property<String>getAllureJavaVersion()allure-javaversion (adapters for test engines)final Property<String>getAspectjVersion()final Property<Boolean>getAutoconfigure()Automatically add the relevant test engine adapters final Property<Boolean>getAutoconfigureListeners()Configure default listeners by default (e.g. final Property<Boolean>getAutoconfigureJavadocDescriptions()Automatically add the Javadoc description annotation processor. final Property<Boolean>getAspectjWeaver()Automatically add AspectJ waver final RegularFilePropertygetCategoriesFile()Path to categories.jsonfile for Allure.final DirectoryPropertygetResultsDir()Directory where instrumented tasks write Allure raw results. final AdapterHandlergetFrameworks()final Unitframeworks(Action<in AdapterHandler> action)final UnitaddAspectjTo(TaskCollection<out Task> tasks)final UnitaddAspectjTo(TaskProvider<out Task> task)final UnitaddAspectjTo(Task task)final UnitgatherResultsFrom(TaskCollection<out Task> tasks)final UnitgatherResultsFrom(TaskProvider<out Task> task)final UnitgatherResultsFrom(Task task)-
-
Method Detail
-
getAllureJavaVersion
final Property<String> getAllureJavaVersion()
allure-javaversion (adapters for test engines)
-
getAspectjVersion
final Property<String> getAspectjVersion()
-
getAutoconfigure
final Property<Boolean> getAutoconfigure()
Automatically add the relevant test engine adapters
-
getAutoconfigureListeners
final Property<Boolean> getAutoconfigureListeners()
Configure default listeners by default (e.g. JUnit5, TestNG). This should be disabled if the project uses custom listeners
-
getAutoconfigureJavadocDescriptions
final Property<Boolean> getAutoconfigureJavadocDescriptions()
Automatically add the Javadoc description annotation processor. This can be disabled when the project configures annotation processing manually.
-
getAspectjWeaver
final Property<Boolean> getAspectjWeaver()
Automatically add AspectJ waver
-
getCategoriesFile
final RegularFileProperty getCategoriesFile()
Path to
categories.jsonfile for Allure. The default path istest/resources/**/categories.json.
-
getResultsDir
final DirectoryProperty getResultsDir()
Directory where instrumented tasks write Allure raw results.
-
getFrameworks
final AdapterHandler getFrameworks()
-
frameworks
final Unit frameworks(Action<in AdapterHandler> action)
-
addAspectjTo
final Unit addAspectjTo(TaskCollection<out Task> tasks)
-
addAspectjTo
final Unit addAspectjTo(TaskProvider<out Task> task)
-
addAspectjTo
final Unit addAspectjTo(Task task)
-
gatherResultsFrom
final Unit gatherResultsFrom(TaskCollection<out Task> tasks)
-
gatherResultsFrom
final Unit gatherResultsFrom(TaskProvider<out Task> task)
-
gatherResultsFrom
final Unit gatherResultsFrom(Task task)
-
-
-
-