templates.default.tables.ftlh Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cucumber-report-generator Show documentation
Show all versions of cucumber-report-generator Show documentation
The part of the Cucumber Reports library directly responsible for
reports generation.
The newest version!
<#assign Math=statics['java.lang.Math'] >
<#macro drawOverviewStatsTable stats>
Passed Failed Known Undefined Total %Passed
Features
${stats.getFeaturesPassed()}
${stats.getFeaturesFailed()}
${stats.getFeaturesKnown()}
${stats.getFeaturesUndefined()}
${stats.getFeaturesTotal()}
<#if stats.getFeaturesTotal() == 0>
NaN
<#else>
#{100 * (stats.getFeaturesPassed() + stats.getFeaturesKnown()) / stats.getFeaturesTotal() ;M0}%
#if>
Scenarios
${stats.getScenariosPassed()}
${stats.getScenariosFailed()}
${stats.getScenariosKnown()}
${stats.getScenariosUndefined()}
${stats.getScenariosTotal()}
<#if stats.getScenariosTotal() == 0>
NaN
<#else>
#{100 * (stats.getScenariosPassed() + stats.getScenariosKnown()) / stats.getScenariosTotal() ;M0}%
#if>
Steps
${stats.getStepsPassed()}
${stats.getStepsFailed()}
${stats.getStepsKnown()}
${stats.getStepsUndefined()}
${stats.getStepsTotal()}
<#if stats.getStepsTotal() == 0>
NaN
<#else>
#{100 * (stats.getStepsPassed() + stats.getStepsKnown()) / stats.getStepsTotal() ;M0}%
#if>
Overall Duration: ${(stats.overallDuration/3600)?string["0;; roundingMode=floor"]}h ${((stats.overallDuration % 3600) / 60)?string["00"]}m ${((stats.overallDuration % 3600) % 60)?string["00"]}s
#macro>