Skip to content

Commit

Permalink
Minor updates to TC health pages
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Sep 18, 2019
1 parent fb6d1bd commit 62d7d9f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion tcms/telemetry/api.py
Expand Up @@ -215,7 +215,6 @@ def _remove_all_excellent_executions(data):


def _count_test_executions(data, test_executions, status):

for te in test_executions:
data[te['case_id']]['count'][status] = te['count']

Expand Down
Expand Up @@ -89,6 +89,7 @@ function renderFailedExecutionsColumn(data) {
return `${data.count.fail} of ${data.count.all}`;
}

// TODO: this can be moved to the back-end and provide the percentage there
function renderPercentColumn(data) {
return Number.parseFloat(data.count.fail / data.count.all * 100).toFixed(1);
}
Expand Up @@ -73,11 +73,9 @@
</div>
</form>

<h2>{% trans "Most frequently failing test cases" %}</h2>
<table class="table table-bordered table-with-horizontal-scroll cell-border" id="test-case-health-table">
<thead>
<tr>
<th class="header" colspan=3> {% trans "Most frequently failing test cases" %} </th>
</tr>
<tr>
<th class="header"> {% trans "Test Case" %}</th>
<th class="header"> {% trans "Failed executions" %}</th>
Expand Down

0 comments on commit 62d7d9f

Please sign in to comment.