gkushang/cucumber-html-reporter

Request to add embeddings logic at feature level.

SriSivaBatchu opened this issue · 0 comments

Hi All,

Problem statement: I'm working on cypress, as we now cypress creates a single video file for all the scenarios. I want to add that on the HTML report. Right now I'm able to add image, video (as text/html), or any text using the embeddings map and the embeddings logic to add the step text (line number 236 in https://github.com/gkushang/cucumber-html-reporter/blob/develop/lib/reporter.js). So on a high-level using this logic I'm attaching the same video for all the scenarios. But I want to add only once at feature level. For this I had a workaround.

Workaround: Once the JSON file is generated I'm adding an entry at the end in the elements map.

Solution: If we can add the embeddings logic at feature level we just have to insert the embedding entry.

Workaround result screenshot:
image

@gkushang Could you please check this one.