def gen_results_summary(self):
    header = ['Name', 'Passing', 'Total', 'Pass Rate']
    if self.cov:
        header.append('Coverage')
    table = [header]
    colalign = (('center',) * len(header))
    for item in self.cfgs:
        row = []
        for title in item.results_summary:
            row.append(item.results_summary[title])
        if (row == []):
            continue
        table.append(row)
    self.results_summary_md = (('## ' + self.results_title) + ' (Summary)\n')
    self.results_summary_md += (('### ' + self.timestamp_long) + '\n')
    self.results_summary_md += tabulate(table, headers='firstrow', tablefmt='pipe', colalign=colalign)
    print(self.results_summary_md)
    return self.results_summary_md
def gen_results_summary(self):
    header = ['Name', 'Passing', 'Total', 'Pass Rate']
    if self.cov:
        header.append('Coverage')
    table = [header]
    colalign = (('center',) * len(header))
    for item in self.cfgs:
        row = []
        for title in item.results_summary:
            row.append(item.results_summary[title])
        if (row == []):
            continue
        table.append(row)
    self.results_summary_md = (('## ' + self.results_title) + ' (Summary)\n')
    self.results_summary_md += (('### ' + self.timestamp_long) + '\n')
    self.results_summary_md += tabulate(table, headers='firstrow', tablefmt='pipe', colalign=colalign)
    print(self.results_summary_md)
    return self.results_summary_md