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
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)
<#if (testOutcome.manual)>
<#list testOutcome.flags as flag>
<#assign testOutcomeTitle = testOutcome.unqualified.withContext().title >
<#assign testOutcomeTitleTip = testOutcome.unqualified.title >
${formatter.htmlCompatibleTestTitle(testOutcomeTitle)}${exampleCount}
<#if (!testOutcome.titleWithIssues)>
${testOutcome.nestedStepCount}
<#if reportOptions.showStepDetails>
${testOutcome.failureCount}
${testOutcome.errorCount}
${testOutcome.compromisedCount}
${testOutcome.pendingCount}
${testOutcome.skippedCount}
${testOutcome.ignoredCount}
${testOutcome.startedAt}
${testOutcome.durationInSeconds}