I have a problem with creating custom meta data in multiple-cucumber-html-reporter.
Here is a example of custom meta data.
How to set custom meta data for cucumber features?
Thank you in advanced.
I have a problem with creating custom meta data in multiple-cucumber-html-reporter.
Here is a example of custom meta data.
How to set custom meta data for cucumber features?
Thank you in advanced.
A bit late perhaps, but I ran into the same question recently.
You have to parse the option in the arguments passed to the report.generate()
So in my case it looks something like:
report.generate({
customMetadata: true,
displayDuration: true,
durationInMS: true,
jsonDir: '/jsonpath',
reportPath: '/reportpath',
metadata: [{
name: 'Column title',
value: 'Column value'
}],
customData: {
title: 'Run info',
data: [{
label: 'Feature',
value: 'feature_name'
},
{
label: 'Execution Start Time',
value: 'start_time'
},
{
label: 'Execution End Time',
value: 'end_time'
},
]
}
});
More info can be found at: Multiple Cucumber HTML Reporter on GITHUB