Class AllureReportExtension
-
- All Implemented Interfaces:
public class AllureReportExtension
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringNAMEprivate final DirectoryPropertyreportDirprivate final Property<Boolean>dependsOnTestsprivate final Property<Boolean>singleFileprivate final RegularFilePropertyconfigFile
-
Constructor Summary
Constructors Constructor Description AllureReportExtension(ReportingExtension reporting, ObjectFactory objects)
-
Method Summary
Modifier and Type Method Description final DirectoryPropertygetReportDir()Base directory for Allure report. final Property<Boolean>getDependsOnTests()By default, allureReportandallureServetasks do not execute tests since it might be time-consuming.final Property<Boolean>getSingleFile()By default, Allure generates multi-file reports. final RegularFilePropertygetConfigFile()Path to a custom Allure 3 config file. final UnitdependsOnTests()By default, allureReportandallureServetasks do not execute tests since it might be time-consuming.-
-
Method Detail
-
getReportDir
final DirectoryProperty getReportDir()
Base directory for Allure report. Note: since the same project can have both aggregate and regular reports, the actual reports would be placed to
$reportDir/allureReportand$reportDir/allureAggregateReportfolders.
-
getDependsOnTests
final Property<Boolean> getDependsOnTests()
By default,
allureReportandallureServetasks do not execute tests since it might be time-consuming. However, in case tests are up-to-date or from-cache, it might be a nice idea to follow Gradle's default approach: "the task should (re)build all its prerequisites", so the user could edit the source file, launchallureReportand get the updated report with all the tests updated.
-
getSingleFile
final Property<Boolean> getSingleFile()
By default, Allure generates multi-file reports. To generate single-file reports, set this property to true.
-
getConfigFile
final RegularFileProperty getConfigFile()
Path to a custom Allure 3 config file.
-
dependsOnTests
final Unit dependsOnTests()
By default,
allureReportandallureServetasks do not execute tests since it might be time-consuming. However, in case tests are up-to-date or from-cache, it might be a nice idea to follow Gradle's default approach: "the task should (re)build all its prerequisites", so the user could edit the source file, launchallureReportand get the updated report with all the tests updated.
-
-
-
-