@openui5/sap.ui.core
Version:
OpenUI5 Core Library sap.ui.core
114 lines • 4.79 kB
text/xml
<mvc:View
controllerName="sap.ui.test.BlanketReporterUI"
xmlns="sap.m"
xmlns:table="sap.ui.table"
xmlns:core="sap.ui.core"
xmlns:mvc="sap.ui.core.mvc"
xmlns:form="sap.ui.layout.form">
<form:SimpleForm editable="false" layout="ResponsiveGridLayout" title="Blanket Code Coverage"
columnsXL="2" columnsL="1" columnsM="1"
emptySpanXL="0" emptySpanL="4" emptySpanM="0" emptySpanS="0"
labelSpanXL="4" labelSpanL="3" labelSpanM="4" labelSpanS="12" adjustLabelSpan="false"
singleContainerFullSize="false" >
<core:Title text="Line Coverage"/>
<Label text="Lines"/>
<Text text="{path : '/lines/total', type : 'sap.ui.model.odata.type.Int32'}"/>
<Label text="Missed"/>
<Text text="{path : '/lines/missed', type : 'sap.ui.model.odata.type.Int32'}"/>
<Label/>
<ProgressIndicator width="10em" percentValue="{/lines/coverage}"
displayValue="{path : '/lines/coverage', type : 'sap.ui.model.odata.type.Double',
formatOptions : {minFractionDigits : 1, maxFractionDigits : 1}} %"
state="{= %{/lines/coverage} < %{/threshold} ? 'Error' : 'Success'}"/>
<core:Title text="{= %{/branchTracking} ? 'Branch Coverage' : ''}"/>
<Label text="Branches" visible="{= %{/branchTracking}}"/>
<Text text="{path : '/branches/total', type : 'sap.ui.model.odata.type.Int32'}"
visible="{= %{/branchTracking}}"/>
<Label text="Missed" visible="{= %{/branchTracking}}"/>
<Text text="{path : '/branches/missed', type : 'sap.ui.model.odata.type.Int32'}"
visible="{= %{/branchTracking}}"/>
<Label visible="{= %{/branchTracking}}"/>
<ProgressIndicator width="10em" percentValue="{/branches/coverage}"
displayValue="{path : '/branches/coverage', type : 'sap.ui.model.odata.type.Double',
formatOptions : {minFractionDigits : 1, maxFractionDigits : 1}} %"
state="{= %{/branches/coverage} < %{/threshold} ? 'Error' : 'Success'}"
visible="{= %{/branchTracking}}"/>
</form:SimpleForm>
<table:Table id="Files" selectionMode="Single" selectionBehavior="RowOnly" rows="{/files}"
rowSelectionChange="onRowSelection" visibleRowCountMode="Interactive"
minAutoRowCount="1" visibleRowCount="{/visible}">
<table:extension>
<HBox>
<CheckBox selected="{/filterThreshold}" text="Below Threshold ({/threshold} %)"
select="onFilterThreshold" visible="{= %{/threshold} > 0}"/>
<CheckBox select="onRowSelection" selected="{/showHits}" text="Show Hits"/>
</HBox>
</table:extension>
<table:columns>
<table:Column width="5em" hAlign="Right">
<table:label>
<Text text="Lines"/>
</table:label>
<table:template>
<Text text="{path : 'lines/total', type : 'sap.ui.model.odata.type.Int32'}"/>
</table:template>
</table:Column>
<table:Column width="5em" hAlign="Right" sortProperty="lines/missed">
<table:label>
<Text text="Missed"/>
</table:label>
<table:template>
<Text text="{path : 'lines/missed', type : 'sap.ui.model.odata.type.Int32'}"/>
</table:template>
</table:Column>
<table:Column width="5em" hAlign="Right" sortProperty="lines/coverage">
<table:label>
<Text text="%"/>
</table:label>
<table:template>
<Text text="{path : 'lines/coverage', type : 'sap.ui.model.odata.type.Double',
formatOptions : {minFractionDigits : 1, maxFractionDigits : 1}}"/>
</table:template>
</table:Column>
<table:Column width="5em" hAlign="Right" visible="{= %{/branchTracking}}">
<table:label>
<Text text="Branches"/>
</table:label>
<table:template>
<Text text="{path : 'branches/total', type : 'sap.ui.model.odata.type.Int32'}"/>
</table:template>
</table:Column>
<table:Column width="5em" hAlign="Right" sortProperty="branches/missed"
visible="{= %{/branchTracking}}">
<table:label>
<Text text="Missed"/>
</table:label>
<table:template>
<Text text="{path : 'branches/missed',
type : 'sap.ui.model.odata.type.Int32'}"/>
</table:template>
</table:Column>
<table:Column width="5em" hAlign="Right" sortProperty="branches/coverage"
class="{= %{/branches/coverage} < %{/threshold} ? 'blanket_miss' : ''}"
visible="{= %{/branchTracking}}">
<table:label>
<Text text="%"/>
</table:label>
<table:template>
<Text text="{path : 'branches/coverage',
type : 'sap.ui.model.odata.type.Double',
formatOptions : {minFractionDigits : 1, maxFractionDigits : 1}}"/>
</table:template>
</table:Column>
<table:Column filterProperty="name" sortProperty="name" sorted="true">
<table:label>
<Text text="File"/>
</table:label>
<table:template>
<Text text="{name}"/>
</table:template>
</table:Column>
</table:columns>
</table:Table>
<core:HTML id="blanket-source" sanitizeContent="true" visible="false"/>
</mvc:View>