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

templates.macros.report.embeddings.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.6
Show newest version
#macro(includeEmbeddings, $embeddings)

#if (!$embeddings.isEmpty())
  
#foreach($embedding in $embeddings) #if ($embedding.getMimeType() == "image/png") #includeImageEmbedding($embedding, "png", $foreach.index) #elseif ($embedding.getMimeType() == "image/bmp") #includeImageEmbedding($embedding, "bmp", $foreach.index) #elseif ($embedding.getMimeType() == "image/jpeg") #includeImageEmbedding($embedding, "jpeg", $foreach.index) #elseif ($embedding.getMimeType() == "text/plain") #includePlainTextEmbedding($embedding, $foreach.index) #elseif ($embedding.getMimeType() == "text/html") #includeMonochromeTextEmbedding($embedding, "HTML", $foreach.index) #elseif ($embedding.getMimeType() == "application/json") #includeMonochromeTextEmbedding($embedding, "JSON", $foreach.index) #elseif ($embedding.getMimeType() == "image/url") #includeImageReferenceEmbedding($embedding, $foreach.index) #else #includeUnknownEmbedding($embedding, $foreach.index) #end #end
#end #end #macro(includeImageEmbedding, $embedding, $image_type, $index) #set($Quote = '"') #includeExpandableEmbedding($embedding, $image_type, "", $index) #end #macro(includeImageReferenceEmbedding, $embedding, $index) #set($Quote = '"') #includeExpandableEmbedding($embedding, "Image", "", $index) #end #macro(includeMonochromeTextEmbedding, $embedding, $format, $index) #includeExpandableEmbedding($embedding, $format, "
$embedding.getDecodedData()
", $index) #end #macro(includePlainTextEmbedding, $embedding, $index) #includeExpandableEmbedding($embedding "Text", $embedding.getDecodedData(), $index) #end #macro(includeUnknownEmbedding, $embedding, $index) #set($Quote = '"') #includeExpandableEmbedding($embedding, $embedding.getMimeType(), "File the bug so support for this mimetype can be added.", $index) #end #macro(includeExpandableEmbedding, $embedding, $type, $content, $index) #set($index = $index + 1) #end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy