templates.spec.ftlh Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of arete-gradle Show documentation
Show all versions of arete-gradle Show documentation
Gradle reporting plugin for the Arete JUnit5 testing framework.
The newest version!
<#-- @ftlvariable name="step" type="com.github.mictaege.arete_gradle.SpecificationStep" -->
${step.displayName}
<#include "arete-css.ftlh">
<#include "prism-css.ftlh">
<#assign level = 0>
<#macro stamp step>
<#if "${step.type}" == "SPEC">
Results generated by arete
${step.timeStampLong}
${step.testClassName}
<#elseif "${step.resultState}" == "ABORTED" || "${step.resultState}" == "FAILED">
${step.timeOnly}
#if>
#macro>
<#macro dumpSteps step>
<#assign vMargin = 0>
<#assign vMargin = 0>
<#assign fWeight = "normal">
<#assign noHoverSuffix = "-no-hover">
<#assign collapsible = "">
<#if step.hasScreenshot>
<#assign collapsible = "collapsible">
<#assign noHoverSuffix = "">
#if>
<#if step.hasErrorMsg>
<#assign collapsible = "collapsible">
<#assign noHoverSuffix = "">
#if>
<#if step.type.container>
<#assign vMargin = 15>
<#assign fWeight = "bolder">
#if>
<#assign indent = 25>
<#if "${step.resultState}" == "IGNORED">
${step.displayName}
<#if step.hasScreenshot>
#if>
<@stamp step/>
<#if step.hasScreenshot>
#if>
<#elseif "${step.resultState}" == "SUCCESSFUL">
${step.displayName}
<#if step.hasScreenshot>
#if>
<@stamp step/>
<#if step.hasScreenshot>
#if>
<#elseif "${step.resultState}" == "ABORTED">
${step.displayName}
<#if step.hasScreenshot>
#if>
<@stamp step/>
<#if step.hasScreenshot>
#if>
<#elseif "${step.resultState}" == "FAILED">
${step.displayName}
<#if step.hasScreenshot>
#if>
<@stamp step/>
<#if step.hasErrorMsg>
${step.errorMsg}
#if>
<#if step.hasScreenshot>
#if>
${step.stackTrace}
<#else>
${step.resultState.sign} ${step.displayName}
<#if step.hasScreenshot>
#if>
#if>
<#if step.hasNarrative>
${step.narrative.header}
<#list step.narrative.lines as line>
${line}
#list>
#if>
<#if "${step.type}" == "SPEC" || "${step.type}" == "FEATURE">
<#list step.stepsReversed as childStep>
<#assign level++>
<@dumpSteps childStep/>
<#assign level-->
#list>
<#else>
<#list step.steps as childStep>
<#assign level++>
<@dumpSteps childStep/>
<#assign level-->
#list>
#if>
#macro>
<@dumpSteps step/>
<#include "prism-js.ftlh">