Skip to content

Commit

Permalink
Add test count to PDF report (#482)
Browse files Browse the repository at this point in the history
* Add test count to PDF report

* Fix pylint issue

* Exclude error

---------

Signed-off-by: J Boddey <boddey@google.com>
  • Loading branch information
jboddey committed Jun 3, 2024
1 parent 0723bd9 commit a14a596
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions framework/python/src/common/testreport.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,14 @@ def generate_footer(self, page_num):

def generate_results(self, json_data, page_num):

result_list = '''
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</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 a14a596

Please sign in to comment.