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

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

Go to download

Provides pretty html reports for Cucumber. It works by generating html from the cucumber json file.

There is a newer version: 5.8.2
Show newest version
#macro(includeHooks $keyword, $hooks, $status)

#if(!$hooks.isEmpty())
  
#set($hookId = $counter.next())
#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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy