Skip to content

Commit

Permalink
Exclude error
Browse files Browse the repository at this point in the history
  • Loading branch information
jboddey committed May 30, 2024
1 parent e4fb6ab commit 46e1245
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion framework/python/src/common/testreport.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,14 @@ def generate_footer(self, page_num):

def generate_results(self, json_data, page_num):

successful_tests = 0
for test in self._results:
if test['result'] != 'Error':
successful_tests += 1

result_list = f'''
<div class="result-list">
<h3>Results List <small>({len(self._results)}/{self._total_tests})</small></h3>
<h3>Results List <small>({len(successful_tests)}/{self._total_tests})</small></h3>
<div class="result-line" style="margin-top: 10px;border-top-left-radius:4px;border-top-right-radius:4px;">
<div class="result-list-header-label" style="left: .1in">Name</div>
<div class="result-list-header-label" style="left: 2.8in">Description</div>
Expand Down

0 comments on commit 46e1245

Please sign in to comment.