Skip to main content

touchstone.casemetadataargs

Home > @pebula/touchstone > CaseMetadataArgs

CaseMetadataArgs interface

Signature:

export interface CaseMetadataArgs 

Properties

Property

Modifiers

Type

Description

benchmarkOptions?

BenchmarkOptions

(Optional) The default benchmark options for the Case.

## Options resolution process:

For each Case select the options by merging the following objects (first one wins):

  • Use options defined on the Case (WE ARE HERE) - Use options defined on the Suite - Use options defined for the entire run - Use the default options defined by the library (static)

name?

string

(Optional) The name of the performance test. This is not mandatory, if not set the method name is used.

variants?

Array<Required<Omit<CaseMetadataArgs, 'variants'>>>

(Optional) 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.