freemarker.components.test-outcomes.ftl Maven / Gradle / Ivy
<#macro test_results(testOutcomes, title, id)>
${title}
Tests
Steps
<#if reportOptions.showStepDetails>
Fail
Error
Comp
Pend
Ignore
Skip
#if>
Started
Took
(secs)
<#assign testResultSet = testOutcomes.tests >
<#foreach testOutcome in testResultSet>
<#assign test_outcome_icon = formatter.resultIcon().forResult(testOutcome.result) />
<#assign exampleCount = "" />
<#if testOutcome.dataDriven>
<#assign exampleCount> (${testOutcome.dataTable.size} examples)#assign>
#if>
<#if (testOutcome.manual)>#if>
<#list testOutcome.flags as flag>
#list>
<#assign testOutcomeTitle = testOutcome.unqualified.withContext().title >
<#assign testOutcomeTitleTip = testOutcome.unqualified.title >
${formatter.htmlCompatibleTestTitle(testOutcomeTitle)}${exampleCount}
<#if (!testOutcome.titleWithIssues)>
#if>
${testOutcome.nestedStepCount}
<#if reportOptions.showStepDetails>
${testOutcome.failureCount}
${testOutcome.errorCount}
${testOutcome.compromisedCount}
${testOutcome.pendingCount}
${testOutcome.skippedCount}
${testOutcome.ignoredCount}
#if>
${testOutcome.startedAt}
${testOutcome.durationInSeconds}
#foreach>