templates.macros.json.element.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(includeElement, $element, $linkToFeature)
#if ($linkToFeature)
Feature:
$element.getFeature().getName()
#end
#includeTags($element.getTags())
#includeDuration($element)
#set($elementId = $counter.next())
#includeBrief($element.getKeyword(), $element.getStatus(), $element.getName(), true)
$element.getDescription()
#includeHooks("Before", $element.getBefore(), $element.getBeforeStatus())
#includeSteps($element.getSteps())
#includeHooks("After", $element.getAfter(), $element.getAfterStatus())
#end