Skip to main content

touchstone.casemetadataargs.variants

Home > @pebula/touchstone > CaseMetadataArgs > variants

CaseMetadataArgs.variants property

A list of variants that will run in the suite, each as a separate case. I.E. run the same method as a new case but with a different benchmark configuration set.

> Note that each variant must have a unique name across the entire suite and must not match the original name or any other variant name for this method and other methods within the Suite.

> Note that filters apply on each variant like it will on any regular case.

Signature:

variants?: Array<Required<Omit<CaseMetadataArgs, 'variants'>>>;