cucumber-html-reporter
cucumber-html-reporter copied to clipboard
Can't show the total-time of all scenarios
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.
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.
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 - do you have a fix for it? lets get it published for the community, pls let me know
PR here https://github.com/gkushang/cucumber-html-reporter/pull/295