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
ConfigurationProvider
using aConfigurationSource
. By default, aDelegatingConfigurationProvider
will be used, but alternatively it is also possible to use custom configurations such as theConfigurationFromMethod
. All configurable aspects have sensible default. If only aInputParameterModel
is specified, the combinatorial test will be executed with aIpog
, no fault characterization and execution reporter, and some defaultArgumentConverter
such asParameterArgumentConverter
,ValueArgumentConverter
,TupleListArgumentConverter
, andCombinationArgumentConverter
.CombinatorialTest
may 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.ParameterizedTest
annotation provided in the junit-jupiter-params project.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description ExecutionMode
executionMode
Defines the execution mode used for the combinatorial test.String
inputParameterModel
Determines the name of the static method that provides theInputParameterModel
.String
name
Defines 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
Combination
which is tested by the test - {PARAMETER_NAME}: the value of the
Parameter
with 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
InputParameterModelSource
is 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_ALL
enforces 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
-
-