[gnome-continuous] Show failed tests grouped by component
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous] Show failed tests grouped by component
- Date: Thu, 13 Feb 2014 12:02:59 +0000 (UTC)
commit 25c0d8e9834eafd44b3df82cadc04e83caef48f5
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Thu Feb 13 02:51:57 2014 +0100
Show failed tests grouped by component
https://bugzilla.gnome.org/show_bug.cgi?id=724262
extras/build.gnome.org/controllers.js | 25 ++++++++++++-------
.../build.gnome.org/partials/gnome-continuous.html | 13 +++++++++-
2 files changed, 28 insertions(+), 10 deletions(-)
---
diff --git a/extras/build.gnome.org/controllers.js b/extras/build.gnome.org/controllers.js
index 536a650..b9d5f7b 100644
--- a/extras/build.gnome.org/controllers.js
+++ b/extras/build.gnome.org/controllers.js
@@ -138,24 +138,31 @@
});
$http.get(ROOT +
'/results/tasks/integrationtest/integrationtest/installed-test-results.json').success(function(data) {
- var testname;
+ var fulltestname;
var total = 0;
- var failed = [];
+ var failedComponents = [];
+ var failedTestsPerComponent = [];
var successful = [];
var skipped = [];
- for (testname in data) {
+ for (fulltestname in data) {
+ var component = fulltestname.split('/')[0];
+ var testname = fulltestname.split('/')[1];
total++;
- var status = data[testname];
+ var status = data[fulltestname];
if (status == 'success')
- successful.push(testname);
- else if (status == 'failed')
- failed.push(testname);
+ successful.push(fulltestname);
+ else if (status == 'failed'){
+ if (failedComponents.indexOf(component) == -1)
+ failedComponents.push(component);
+ failedTestsPerComponent.push({name: component, test: testname});
+ }
else if (status == 'skipped')
- skipped.push(testname);
+ skipped.push(fulltestname);
}
$scope.installedTestsTotal = total;
$scope.installedTestsSuccessful = successful;
- $scope.installedTestsFailed = failed;
+ $scope.installedTestsFailedComponents = failedComponents;
+ $scope.installedTestsFailedPerComponent = failedTestsPerComponent;
$scope.installedTestsSkipped = skipped;
});
diff --git a/extras/build.gnome.org/partials/gnome-continuous.html
b/extras/build.gnome.org/partials/gnome-continuous.html
index 7466118..e84c101 100644
--- a/extras/build.gnome.org/partials/gnome-continuous.html
+++ b/extras/build.gnome.org/partials/gnome-continuous.html
@@ -42,7 +42,18 @@
<h3><a href="https://live.gnome.org/Initiatives/GnomeGoals/InstalledTests">InstalledTests</a></h3>
<div>Version <a href="{{ integrationtest.href }}">{{ integrationtest.version }}</a></div>
<div> {{ installedTestsSuccessful.length }} successful, {{ installedTestsSkipped.length }} skipped</div>
- <div>Failed: {{ installedTestsFailed }}</div>
+ <div ng-init="expand = []"> Failed: {{installedTestsFailedPerComponent.length}}</div>
+ <div ng-repeat="component in installedTestsFailedComponents">
+ <span ng-init="expand[$index]=false">{{component}}
+ <span ng-click="expand[$index]=!expand[$index]">
+ <span ng-show="expand[$index]" style="text-decoration: underline" >[Hide]</span><span
ng-show="!expand[$index]" style="text-decoration: underline" >[Show]</span>
+ </span>
+ <span ng-show="expand[$index]">
+ <ul ng-repeat="failedTest in installedTestsFailedPerComponent">
+ <li ng-if="failedTest['name'] == component">{{failedTest['test']}}</div>
+ </ul>
+ </span>
+ </div>
</div>
<div class="app-grid">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]