templates.macros.report.statsTable.vm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cucumber-reporting Show documentation
Show all versions of cucumber-reporting Show documentation
Provides pretty html reports for Cucumber. It works by generating html from the cucumber json file.
#macro(includeStatsTable, $table_key, $parallel, $items, $report_summary)
#includeReportHeader($table_key, $parallel)
#foreach($item in $items)
$item.getName()
#if ($parallel)
$item.getDeviceName()
#end
0) class="passed" #end>$item.getPassedSteps()
0) class="failed" #end>$item.getFailedSteps()
0) class="skipped" #end>$item.getSkippedSteps()
0) class="pending" #end>$item.getPendingSteps()
0) class="undefined" #end>$item.getUndefinedSteps()
$item.getSteps()
0) class="passed" #end>$item.getPassedScenarios()
0) class="failed" #end>$item.getFailedScenarios()
$item.getScenarios()
$item.getFormattedDuration()
$item.getStatus().getLabel()
#end
#if ($parallel)
-
#end
$report_summary.getPassedSteps()
$report_summary.getFailedSteps()
$report_summary.getSkippedSteps()
$report_summary.getPendingSteps()
$report_summary.getUndefinedSteps()
$report_summary.getSteps()
$report_summary.getPassedScenarios()
$report_summary.getFailedScenarios()
$report_summary.getScenarios()
$report_summary.getFormattedDuration()
$items.size()
#if ($parallel)
-
#end
$util.formatAsPercentage($report_summary.getPassedSteps(), $report_summary.getSteps())
$util.formatAsPercentage($report_summary.getFailedSteps(), $report_summary.getSteps())
$util.formatAsPercentage($report_summary.getSkippedSteps(), $report_summary.getSteps())
$util.formatAsPercentage($report_summary.getPendingSteps(), $report_summary.getSteps())
$util.formatAsPercentage($report_summary.getUndefinedSteps(), $report_summary.getSteps())
$util.formatAsPercentage($report_summary.getPassedScenarios(), $report_summary.getScenarios())
$util.formatAsPercentage($report_summary.getFailedScenarios(), $report_summary.getScenarios())
$util.formatAsPercentage($report_summary.getPassedFeatures(), $report_summary.getFeatures())
#end