Package io.qameta.allure.testng.config
Class AllureTestNgConfig
java.lang.Object
io.qameta.allure.testng.config.AllureTestNgConfig
Stores configuration options for the Allure TestNG integration.
Create an instance from Properties when tests need explicit options, or use loadConfigProperties() to read the standard Allure properties file. The fluent setters support programmatic configuration.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAllureTestNgConfig(Properties properties) Creates an Allure test ng config with the supplied values. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether hide configuration failures.booleanReturns whether hide disabled tests.static AllureTestNgConfigLoads and returns the config properties.setHideConfigurationFailures(boolean hideConfigurationFailure) Sets the hide configuration failures.setHideDisabledTests(boolean hide) Sets the hide disabled tests.
-
Field Details
-
ALLURE_TESTNG_HIDE_DISABLED_TESTS
Configuration key for allure testng hide disabled tests.- See Also:
-
ALLURE_TESTNG_HIDE_CONFIGURATION_FAILURES
Configuration key for allure testng hide configuration failures.- See Also:
-
-
Constructor Details
-
AllureTestNgConfig
Creates an Allure test ng config with the supplied values.- Parameters:
properties- the properties to read configuration values from
-
-
Method Details
-
isHideDisabledTests
public boolean isHideDisabledTests()Returns whether hide disabled tests.- Returns:
- true when hide disabled tests; false otherwise
-
setHideDisabledTests
Sets the hide disabled tests.- Parameters:
hide- whether disabled tests should be hidden- Returns:
- this instance for method chaining
-
isHideConfigurationFailures
public boolean isHideConfigurationFailures()Returns whether hide configuration failures.- Returns:
- true when hide configuration failures; false otherwise
-
setHideConfigurationFailures
Sets the hide configuration failures.- Parameters:
hideConfigurationFailure- whether configuration failures should be hidden- Returns:
- this instance for method chaining
-
loadConfigProperties
Loads and returns the config properties.- Returns:
- the configuration loaded from standard Allure properties
-