Fixture.meta Method

Specifies the fixture's metadata.

fixture.meta(name, value) → this
fixture.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. You can display it in the reports or use it to filter tests. Metadata is specified as key-value pairs.

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

To specify metadata for individual tests, use the test.meta method.