templates.macros.json.hooks.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(includeHooks $keyword, $hooks, $status)
#if(!$hooks.isEmpty())
#set($hookId = $counter.next())
#includeBrief("Hooks", $status, "", true)
#foreach($hook in $hooks)
$keyword
#if ($hook.getMatch())
$hook.getMatch().getLocation()
#end
#includeDuration($hook.getResult())
#if ($hook.getResult())
#includeMessage("Error message", $hook.getResult().getErrorMessage())
#end
#set($isPassed = $hook.getResult().getStatus().isPassed())
#includeOutput($hook.getOutputs(), $isPassed)
#includeEmbeddings($hook.getEmbeddings())
#end
#end
#end