gkushang / cucumber-html-reporter

Generates Cucumber HTML reports in three different themes
MIT License
234 stars 155 forks source link

Can't show the total-time of all scenarios #225

Open viengiang opened 4 years ago

viengiang commented 4 years ago

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.

marcelovani commented 5 months ago

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"
  },
gkushang commented 5 months ago

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

marcelovani commented 5 months ago

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