GeneratedParametersTest

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
@API(status = API.Status.STABLE, since = "3.0")
@TestTemplate
@ExtendWith(value = [GeneratedParametersTestExtension::class])
annotation class GeneratedParametersTest(val name: String = DEFAULT_DISPLAY_NAME, val filters: Array<String> = [])

Marks a test whose parameters are generated, running it once per combination of generated values.

Properties

Link copied to clipboard

Names of methods that decide which generated combinations run. Each is matched by parameter name to the generated parameters it declares, so a rule names only what it is about, and a combination runs only if every filter accepts it.

Link copied to clipboard

the display name given to each invocation. Supports the same placeholders as @ParameterizedTest: {index} for the 1-based invocation number, {arguments} for the generated values, {argumentsWithNames} for name=value pairs, {displayName} for the test method's own display name, and {0}, {1} and so on for a single generated value by position. Only generated parameters are listed; parameters resolved by other extensions are not.