Interface Allure
- All Superinterfaces:
org.aeonbits.owner.Config, EngineProperties<Allure>, Serializable
Allure.properties files on the
classpath or file-system, and are hot-reloaded at runtime.
Use set() to change property values programmatically:
SHAFT.Properties.allure.set().automaticallyOpen(false).generateArchive(true);
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent builder that allows programmatic override of individual Allure configuration properties.Nested classes/interfaces inherited from interface org.aeonbits.owner.Config
org.aeonbits.owner.Config.ConverterClass, org.aeonbits.owner.Config.DecryptorClass, org.aeonbits.owner.Config.DefaultValue, org.aeonbits.owner.Config.DisableableFeature, org.aeonbits.owner.Config.DisableFeature, org.aeonbits.owner.Config.EncryptedValue, org.aeonbits.owner.Config.HotReload, org.aeonbits.owner.Config.HotReloadType, org.aeonbits.owner.Config.Key, org.aeonbits.owner.Config.LoadPolicy, org.aeonbits.owner.Config.LoadType, org.aeonbits.owner.Config.PreprocessorClasses, org.aeonbits.owner.Config.Separator, org.aeonbits.owner.Config.Sources, org.aeonbits.owner.Config.TokenizerClass -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether Allure history data should be accumulated across test runs, enabling trend graphs and historical comparison in the report.booleanWhether generated Allure HTML report files should accumulate in the report directory rather than being replaced on each run.booleanWhether the Allure report HTML file should be opened automatically in the default browser after the test run completes.booleanWhether the Allure results directory should be cleaned before a new test run starts.URL pointing to a custom logo image that replaces the default SHAFT logo in the Allure report.Custom title displayed in the header of the generated Allure report.booleanOpt-in switch to enforce usage of the configured Allure 3 CLI version (SHAFT.Properties.internal.allure3Version()).booleanWhether a self-contained ZIP archive of the generated Allure report should be created after the test run.booleanEnables SHAFT-managed real-time Allure 3 report monitoring viaallure watch.default Allure.SetPropertyset()Returns a fluentAllure.SetPropertybuilder for programmatically overriding Allure properties.
-
Method Details
-
automaticallyOpen
@Key("allure.automaticallyOpen") @DefaultValue("true") boolean automaticallyOpen()Whether the Allure report HTML file should be opened automatically in the default browser after the test run completes.Property key:
allure.automaticallyOpen— default:true- Returns:
trueto open the report automatically;falseotherwise
-
accumulateHistory
@Key("allure.accumulateHistory") @DefaultValue("true") boolean accumulateHistory()Whether Allure history data should be accumulated across test runs, enabling trend graphs and historical comparison in the report.Property key:
allure.accumulateHistory— default:true- Returns:
trueto accumulate history;falseto start fresh each run
-
accumulateReports
@Key("allure.accumulateReports") @DefaultValue("true") boolean accumulateReports()Whether generated Allure HTML report files should accumulate in the report directory rather than being replaced on each run.Property key:
allure.accumulateReports— default:true- Returns:
trueto keep previous report HTML files;falseto overwrite them
-
cleanResultsDirectory
@Key("allure.cleanResultsDirectory") @DefaultValue("true") boolean cleanResultsDirectory()Whether the Allure results directory should be cleaned before a new test run starts. Disable this when you want to merge results from multiple partial runs.Property key:
allure.cleanResultsDirectory— default:true- Returns:
trueto delete the results directory before execution;falseto preserve it
-
generateArchive
@Key("allure.generateArchive") @DefaultValue("false") boolean generateArchive()Whether a self-contained ZIP archive of the generated Allure report should be created after the test run. Useful for sharing or archiving reports in CI pipelines.Property key:
allure.generateArchive— default:false- Returns:
trueto generate a ZIP archive of the report;falseotherwise
-
customLogo
@Key("allure.customLogo") @DefaultValue("https://github.com/ShaftHQ/SHAFT_ENGINE/blob/main/src/main/resources/images/shaft.png?raw=true") String customLogo()URL pointing to a custom logo image that replaces the default SHAFT logo in the Allure report.Property key:
allure.customLogo— default: SHAFT_ENGINE white logo on GitHub- Returns:
- a URL string for the custom logo image
-
customTitle
Custom title displayed in the header of the generated Allure report.Property key:
allure.customTitle— default:"Test run report"- Returns:
- the report title string
-
forceConfiguredCliVersion
@Key("allure.forceConfiguredCliVersion") @DefaultValue("true") boolean forceConfiguredCliVersion()Opt-in switch to enforce usage of the configured Allure 3 CLI version (SHAFT.Properties.internal.allure3Version()).Property key:
allure.forceConfiguredCliVersion— default:trueWhen enabled:
- SHAFT bypasses system
allurebinary detection (including Allure 2 compatibility checks). - SHAFT uses managed Allure 3 resolution only:
npx --yes allure@<allure3Version>(or downloaded Node.js fallback).
When disabled, SHAFT uses PATH-first behavior and may activate Allure 2 compatibility mode when a system 2.x binary is detected.
- Returns:
trueto enforce configured Allure 3 CLI usage;falsefor legacy PATH-first behavior
- SHAFT bypasses system
-
realtimeMonitoring
@Key("allure.realtimeMonitoring") @DefaultValue("false") boolean realtimeMonitoring()Enables SHAFT-managed real-time Allure 3 report monitoring viaallure watch.Property key:
allure.realtimeMonitoring— default:trueWhen enabled, SHAFT starts monitoring when Allure 3 CLI resolution succeeds. This feature is unavailable in Allure 2 compatibility mode.
- Returns:
trueto allow real-time monitoring when Allure 3 is available;falseto disable it
-
set
Returns a fluentAllure.SetPropertybuilder for programmatically overriding Allure properties.Example:
SHAFT.Properties.allure.set().automaticallyOpen(false).customTitle("My Suite");- Specified by:
setin interfaceEngineProperties<Allure>- Returns:
- a new
Allure.SetPropertyinstance
-