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
This repository contains the Arete Gradle Plugin.
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">
<#elseif "${step.resultState}" == "ABORTED" || "${step.resultState}" == "FAILED">
${step.timeOnly}
#if>
#macro>
<#macro anchor step>
<#if step.type.container>
#if>
#macro>
<#macro pageMenu step>
<#if step.type.container>
<#list step.stepsReversed as childStep>
<#if childStep.type.container>
<#if "${childStep.cumulatedState()}" == "IGNORED">
-
<#elseif "${childStep.cumulatedState()}" == "SUCCESSFUL">
-
<#elseif "${childStep.cumulatedState()}" == "ABORTED">
-
<#elseif "${childStep.cumulatedState()}" == "FAILED">
-
<#else>
-
#if>
#if>
<@pageMenu childStep/>
#list>
#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/>
<@anchor step/>
<#if step.hasScreenshot>
#if>
<#elseif "${step.resultState}" == "SUCCESSFUL">
${step.displayName}
<#if step.hasScreenshot>
#if>
<@stamp step/>
<@anchor step/>
<#if step.hasScreenshot>
#if>
<#elseif "${step.resultState}" == "ABORTED">
${step.displayName}
<#if step.hasScreenshot>
#if>
<@stamp step/>
<@anchor step/>
<#if step.hasScreenshot>
#if>
<#elseif "${step.resultState}" == "FAILED">
${step.displayName}
<#if step.hasScreenshot>
#if>
<@stamp step/>
<@anchor 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.hasSeeAlsoRefs>
<#assign startComment="">
<#list step.seeAlsoRefs.refs as ref>
<#noautoesc>
${startComment}${ref.className}${endComment}
#noautoesc>
#list>
#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">