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

freemarker.components.tag-list.ftl Maven / Gradle / Ivy

<#macro list_tags(weighted, context)>

${tagsTitle}

% Passed   Test count
<#foreach tagType in tagTypes> <#assign tagTypeTitle = inflection.of(tagType).inPluralForm().asATitle() > <#assign outcomesForType = testOutcomes.withTagType(tagType) > <#assign tags = testOutcomes.getTagsOfTypeExcluding(tagType, testOutcomes.label) > <#if tags?has_content > <#foreach tag in tags> <#assign tagTitle = formatter.htmlCompatible(tagInflector.ofTag(tagType, tag.shortName).toFinalView()) > <#assign tagLabel = inflection.of(tag.name).asATitle() > <#assign tagReport = reportName.inContext(currentTag.completeName).forRequirementOrTag(tag) > <#assign outcomesForTag = testOutcomes.withTag(tag) > <#assign count = outcomesForTag.total> <#assign testCountLabel = inflection.of(count).times("test").inPluralForm() >
${tagTypeTitle}
<#if testOutcomes.label == tag.name> ${tagTitle} <#else> ${tagTitle} <#if weighted == "true"> <#assign percentPending = outcomesForTag.percentSteps.withResult("pending")/> <#assign percentIgnored = outcomesForTag.percentSteps.withResult("ignored") + outcomesForTag.percentSteps.withResult("skipped")/> <#assign percentError = outcomesForTag.percentSteps.withResult("error")/> <#assign percentCompromised = outcomesForTag.percentSteps.withResult("compromised")/> <#assign percentFailing = outcomesForTag.percentSteps.withResult("failure")/> <#assign percentPassing = outcomesForTag.percentSteps.withResult("success")/> <#assign passing = outcomesForTag.formattedPercentageSteps.withResult("success")> <#assign ignored = outcomesForTag.formattedPercentageSteps.withSkippedOrIgnored()/> <#assign failing = outcomesForTag.formattedPercentageSteps.withResult("failure")> <#assign error = outcomesForTag.formattedPercentageSteps.withResult("error")> <#assign compromised = outcomesForTag.formattedPercentageSteps.withResult("compromised")> <#assign pending = outcomesForTag.formattedPercentageSteps.withResult("pending")> <#else> <#assign percentPending = outcomesForTag.proportion.withResult("pending")/> <#assign percentError = outcomesForTag.proportion.withResult("error")/> <#assign percentCompromised = outcomesForTag.proportion.withResult("compromised")/> <#assign percentIgnored = outcomesForTag.proportion.withResult("ignored") + outcomesForTag.proportion.withResult("skipped")/> <#assign percentFailing = outcomesForTag.proportion.withResult("failure")/> <#assign percentPassing = outcomesForTag.proportion.withResult("success")/> <#assign passing = outcomesForTag.formattedPercentage.withResult("success")> <#assign failing = outcomesForTag.formattedPercentage.withResult("failure")> <#assign error = outcomesForTag.formattedPercentage.withResult("error")> <#assign compromised = outcomesForTag.formattedPercentage.withResult("compromised")> <#assign pending = outcomesForTag.formattedPercentage.withResult("pending")> <#assign ignored = outcomesForTag.formattedPercentage.withResult("ignored") + outcomesForTag.formattedPercentage.withResult("skipped") > <#assign ignoredbar = (percentPassing + percentFailing + percentError + percentCompromised + percentIgnored)*150> <#assign compromisedbar = (percentPassing + percentFailing + percentError + percentCompromised)*150> <#assign errorbar = (percentPassing + percentFailing + percentError)*150> <#assign failingbar = (percentPassing + percentFailing)*150> <#assign passingbar = (percentPassing)*150> <#assign successCount = outcomesForTag.totalTests.withResult("success") > <#assign pendingCount = outcomesForTag.totalTests.withResult("pending") > <#assign failureCount = outcomesForTag.totalTests.withResult("failure") > <#assign errorCount = outcomesForTag.totalTests.withResult("error") > <#assign compromisedCount = outcomesForTag.totalTests.withResult("compromised") > <#assign ignoredCount = outcomesForTag.totalTests.withResult("ignored") + outcomesForTag.totalTests.withResult("skipped")> <#assign successStepCount = outcomesForTag.havingResult("success").stepCount > <#assign pendingStepCount = outcomesForTag.havingResult("pending").stepCount > <#assign failureStepCount = outcomesForTag.havingResult("failure").stepCount > <#assign errorStepCount = outcomesForTag.havingResult("error").stepCount > <#assign compromisedStepCount = outcomesForTag.havingResult("compromised").stepCount > <#assign ignoredStepCount = outcomesForTag.havingResult("ignored").stepCount + outcomesForTag.havingResult("skipped").stepCount > <#assign pendingCaption = "${pendingCount} out of ${outcomesForTag.total} tests (${pendingStepCount} steps) pending"> <#assign passingCaption = "${successCount} out of ${outcomesForTag.total} tests (${successStepCount} steps) passing"> <#assign failingCaption = "${failureCount} out of ${outcomesForTag.total} tests (${failureStepCount} steps) failing"> <#assign errorCaption = "${errorCount} out of ${outcomesForTag.total} tests (${errorStepCount} steps) broken"> <#assign compromisedCaption = "${compromisedCount} out of ${outcomesForTag.total} tests (${compromisedStepCount} steps) compromised"> <#assign ignoredCaption = "${ignoredCount} out of ${outcomesForTag.total} tests (${ignoredStepCount} steps) skipped or ignored">




© 2015 - 2024 Weber Informatics LLC | Privacy Policy