b2fedac4fe
Currently, the home page has a hard-coded summary panel specifically for displaying overviews of subunit artifacts, which makes it impossible to show information on other types of artifacts. This adds a new 'summaryService' and associated 'artifact-summary' directive that can dynamically create summary panels depending on artifact type. Additionally, since the summary service allows many summary panels per type per named artifact, we can have multiple (priority-ordered) panels for each artifact. As an example of this, the existing subunit summary has been split into simpler 'subunit-summary' and 'subunit-errors' panels. Change-Id: I0d075dfcb86c6aef8c697896d1728e970b62600f
40 lines
1.2 KiB
HTML
40 lines
1.2 KiB
HTML
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">
|
|
{{artifactName}}
|
|
<span class="text-muted" style="font-size: 65%">
|
|
{{stats.start | date:'d MMM, yyyy'}}
|
|
</span>
|
|
</h3>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="col-xs-3 text-center">
|
|
<span class="huge">{{timeDiff | secondsToTime}}</span>
|
|
<br>
|
|
runtime
|
|
</div>
|
|
<div class="col-xs-3 text-center">
|
|
<span class="huge">{{stats.count}}</span>
|
|
<br>
|
|
tests run
|
|
</div>
|
|
<div class="col-xs-3 text-center">
|
|
<span class="huge text-danger">{{stats.failures.length}}</span>
|
|
<br>
|
|
failed
|
|
</div>
|
|
<div class="col-xs-3 text-center">
|
|
<span class="huge text-primary">{{stats.skips.length}}</span>
|
|
<br>
|
|
skipped
|
|
</div>
|
|
</div>
|
|
<div class="panel-footer clearfix">
|
|
<div class="btn-group pull-right">
|
|
<a type="button"
|
|
class="btn btn-default"
|
|
ui-sref="timeline({artifactName: artifactName})">Details</a>
|
|
</div>
|
|
</div>
|
|
</div>
|