Test.meta Method

Specifies the test's metadata.

test.meta( name, value ) → this
test.meta( metadata ) → this
Parameter Type Description
name String The name of the metadata entry.
value String The value of the metadata entry.
metadata Object Key-value pairs.

Metadata is additional information assigned to tests and fixtures. It can be used to filter tests or displayed in the reports. Metadata is specified as key-value pairs.

test.meta('key1', 'value1');
test.meta({ key1: 'value1', key2: 'value2', key3: 'value3' });

To specify metadata for fixtures, use the fixture.meta method.