
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 (Behaviour-Driven Development). It works by generating html from the
cucumber json report formatter. So can be used anywhere a json report is generated. Current use is in the
cucumber jenkins plugin and a maven mojo to generate the same report from mvn command line when running locally.
#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(), "element")
#includeSteps($element.getSteps())
#includeHooks("After", $element.getAfter(), $element.getAfterStatus(), "element")
#end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy