Annotation Type CombinatorialTest
-
@Documented @Target({METHOD,ANNOTATION_TYPE}) @Retention(RUNTIME) @Testable public @interface CombinatorialTest
This annotation is used to mark a combinatorial test.Configuration of the combinatorial test is also possible via a
ConfigurationProviderusing aConfigurationSource. By default, aDelegatingConfigurationProviderwill be used, but alternatively it is also possible to use custom configurations such as theConfigurationFromMethod. All configurable aspects have sensible default. If only aInputParameterModelis specified, the combinatorial test will be executed with aIpog, no fault characterization and execution reporter, and some defaultArgumentConvertersuch asParameterArgumentConverter,ValueArgumentConverter,TupleListArgumentConverter, andCombinationArgumentConverter.CombinatorialTestmay also be used as a meta-annotation in order to create a custom composed annotation which inherits the semantics of aCombinatorialTest.This annotation is more or less a copy of the
org.junit.jupiter.params.ParameterizedTestannotation provided in the junit-jupiter-params project.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description ExecutionModeexecutionModeDefines the execution mode used for the combinatorial test.StringinputParameterModelDetermines the name of the static method that provides theInputParameterModel.StringnameDefines a custom display name for individual invocations of theCombinatorialTest.
-
-
-
Element Detail
-
name
String name
Defines a custom display name for individual invocations of theCombinatorialTest. Should never be blank or consist of white spaces. This text is what is show in various IDEs to make a test identifiable to the user.Multiple placeholders are supported:
- {combination}: the complete
Combinationwhich is tested by the test - {PARAMETER_NAME}: the value of the
Parameterwith the given name in the currently testedCombination
- Returns:
- the name pattern for all test inputs in this
CombinatorialTest
- Default:
- "{combination}"
- {combination}: the complete
-
-
-
inputParameterModel
String inputParameterModel
Determines the name of the static method that provides theInputParameterModel.The default value is
"model"but it can be changed to any valid method name.Please note the field can be made obsolete when a custom
InputParameterModelSourceis used.- Returns:
- the name of the static method that provides the
InputParameterModel
- Default:
- "model"
-
-
-
executionMode
ExecutionMode executionMode
Defines the execution mode used for the combinatorial test.The default value of
ExecutionMode.EXECUTE_ALLenforces the execution of all individual test cases even if some of them fail.- Returns:
- the execution mode used for this combinatorial test method
- Default:
- de.rwth.swc.coffee4j.algorithmic.configuration.execution.ExecutionMode.EXECUTE_ALL
-
-