All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.macros.json.steps.vm Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 5.8.4
Show newest version
#macro(includeSteps, $steps)

#set($stepsId = $counter.next())
#foreach($step in $element.getSteps())
#foreach($comment in $step.getComments())
$comment
#end #includeStepName($step.getKeyword(), $step.getName(), $step.getMatch().getArguments(), $step.getResult().getStatus(), $step.getResult()) #set($isPassed = $step.getResult().getStatus().isPassed()) #includeHooks("Before", $step.getBefore(), $step.getBeforeStatus(), "step") #includeMessage($step.getResult().getErrorMessageTitle(), $step.getResult().getErrorMessage(), $isPassed) #if (!$step.getRows().isEmpty()) #foreach($row in $step.getRows()) #foreach($cell in $row.getCells()) #end #end
$cell
#end #includeDocString($step.getDocString()) #includeOutput($step.getOutputs(), $isPassed) #includeEmbeddings($step.getEmbeddings()) #includeHooks("After", $step.getAfter(), $step.getAfterStatus(), "step")
#end
#end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy