t.report Method
Use the t.report
method to pass custom data to the reporter.
Specify arguments of any type (string, array, Object, etc). Separate arguments with a comma:
await
t.report(
'text',
{'key': 'value'},
['arrayItem1', 'arrayItem2']
);
The default spec
reporter displays custom data after test completion, once for each browser that runs the test.
If you use a custom reporter plugin, process custom test data within the reportTestDone
method. See the Reporter API documentation for more information.