cucumber-html-reporter icon indicating copy to clipboard operation
cucumber-html-reporter copied to clipboard

Can't show the total-time of all scenarios

Open viengiang opened this issue 4 years ago • 3 comments

Hello everyone, first thing, I want to thanks for everything your team was done.

When I work with my clients, they request me to show the total-time of all scenarios for them. After reading the document, I see the "cucumber-html-reporter" already has that function. But when I generate the report, I can't see the total-time. So I check deeper and saw in the "index.html" file of the "hierarchy" folder is missing the one code line: <span class="label label-info">Time Elapsed: <%= suite.totalTime %></span>. Please look at the image for more details. image

So I tried to add this line to the html file and the total-time is displayed again. Could your team please help me take a look at it? Thanks a lot.

viengiang avatar Sep 16 '20 03:09 viengiang

I have implemented time for Suite and Scenarios here https://github.com/gkushang/cucumber-html-reporter/compare/develop...marcelovani:cucumber-html-reporter:develop

You can try my fork by adding this on package.json

"dependencies": {
    "cucumber-html-reporter": "git+https://github.com/marcelovani/cucumber-html-reporter.git"
  },

marcelovani avatar May 22 '24 16:05 marcelovani

@marcelovani - do you have a fix for it? lets get it published for the community, pls let me know

gkushang avatar May 22 '24 16:05 gkushang

PR here https://github.com/gkushang/cucumber-html-reporter/pull/295

marcelovani avatar May 22 '24 21:05 marcelovani