Commit b3854f4b authored by Luis Araujo's avatar Luis Araujo

Enable manual test cases

This commit enables the manual test cases in the testcases_table and in
the report.
Signed-off-by: Luis Araujo's avatarLuis Araujo <luis.araujo@collabora.co.uk>
parent 2ec77be6
......@@ -3,10 +3,12 @@
# This module contains the TestCasesTable object which represents the main
# test cases table with an internal structure of the form:
#
# [(test-case-name0, priority, [ deployment-type0, deployment-type1 ... ],
# [ image-type0, image-type1, image-type2 ... ]),
# (test-case-name1, priority, [ deployment-type0, deployment-type1 ... ],
# [ image-type0, image-type1, image-type2 ... ]),
# [(test-case-name0, exect_type, priority_color,
# [ deployment-type0, deployment-type1 ... ],
# [ image-type0, image-type1, image-type2 ... ]),
# (test-case-name1, exect_type, priority_color,
# [ deployment-type0, deployment-type1 ... ],
# [ image-type0, image-type1, image-type2 ... ]),
# ...
# ]
#
......@@ -96,11 +98,6 @@ class TestCasesTable(object):
print("yaml format error:", e)
exit(1)
# Only automated tests are currently support, so skip manual tests.
# TODO: Manual tests should be added later.
if tc_data['metadata']['exec-type'] == 'manual':
return
tc_name = tc_data['metadata']['name']
image_type_platforms = []
for image_type , platforms in tc_data['metadata']['image-types'].items():
......@@ -114,7 +111,7 @@ class TestCasesTable(object):
image_deployments = [ e.lower() for e in
tc_data['metadata']['image-deployment'] ]
self._tmp_table.append((tc_name,
self._tmp_table.append((tc_name, tc_data['metadata']['exec-type'],
priority_color[tc_data['metadata']['priority']],
image_deployments,
image_type_platforms))
......@@ -55,8 +55,7 @@
</p>
<div class="row">
<div class="col-md-9"><h5><span class="badge table-secondary">Low</span> <span class="badge table-info">Medium</span> <span class="badge table-warning">High</span> <span class="badge table-danger">Critical</span></h5></div>
<!-- This should be updated when manual tests are supported -->
<div class="col"><em class="text-muted">{{ tc_table|count }} test cases (all automated)</em></div>
<div class="col"><em class="text-muted">{{ tc_table|count }} test cases</em></div>
</div>
</div>
......@@ -81,7 +80,7 @@
</tr>
</thead>
<tbody>
{% for suite, priority_color, deployments, platforms in tc_table %}
{% for suite, exec_type, priority_color, deployments, platforms in tc_table %}
<tr>
<th scope="row" class="table-{{ priority_color }}"><a href="{{test_cases_url}}/{{ suite|e }}.html">{{ suite|e }}</a></th>
{{ set_cell('minimal-armhf-internal', deployments, platforms, suite) }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment