@@ -759,6 +759,13 @@ def add_data_summary_worksheet(self,
759759 worksheet .write (
760760 current_row , current_column + 4 ,
761761 'Supported Tests Passed' , self .__formats ['bold_w_border' ])
762+ worksheet .write (
763+ current_row , current_column + 5 ,
764+ 'Vendor Coverage' , self .__formats ['bold_w_border' ])
765+ worksheet .write (
766+ current_row , current_column + 6 ,
767+ 'Vendor Coverage Passed' , self .__formats ['bold_w_border' ])
768+
762769
763770 current_row += 1
764771
@@ -795,8 +802,38 @@ def add_data_summary_worksheet(self,
795802 str (value .get_supported_tests ()),
796803 self .get_format_color (value .get_passed_tests (),
797804 value .get_supported_tests ()))
805+
806+ # vendor coverage
807+
808+ # for the vendor coverage, we need to find the right data in the
809+ # product_summary_dict, which is the one with the same product as
810+ # publisher and subscriber
811+ for key , value in self .__data .product_summary_dict .items ():
812+ if product_name == key [0 ] and product_name == key [1 ]:
813+ vendor_coverage_supported_tests = value .get_supported_tests ()
814+ vendor_coverage_total_tests = value .get_total_tests ()
815+ vendor_coverage_passed_tests = value .get_passed_tests ()
816+
817+ # vendor coverage
818+ worksheet .write (
819+ current_row , current_column + 5 ,
820+ str (vendor_coverage_supported_tests ) + ' / ' +
821+ str (vendor_coverage_total_tests ),
822+ self .get_format_color (
823+ vendor_coverage_supported_tests ,
824+ vendor_coverage_total_tests ))
825+ # vendor coverage passed
826+ worksheet .write (
827+ current_row , current_column + 6 ,
828+ str (vendor_coverage_passed_tests ) + ' / ' +
829+ str (vendor_coverage_supported_tests ),
830+ self .get_format_color (
831+ vendor_coverage_passed_tests ,
832+ vendor_coverage_supported_tests ))
833+
798834 current_row += 1
799835
836+
800837 # Add 2 rows of gap for the next table
801838 current_row += 2
802839 worksheet .write (
@@ -903,6 +940,19 @@ def add_static_data_summary_worksheet(self,
903940 worksheet .write (current_row , starting_column + 1 ,'Documentation' )
904941 worksheet .write (current_row , starting_column + 2 , self .REPO_DOC )
905942
943+ # Add number of tests
944+
945+ # Find the total number of unique tests by looking for a
946+ # (publisher, subscriber) pair where both are the same
947+ test_count = 0
948+ for key , value in self .__data .product_summary_dict .items ():
949+ if key [0 ] == key [1 ]:
950+ test_count = value .get_total_tests ()
951+ break
952+ current_row += 1
953+ worksheet .write (current_row , starting_column + 1 ,'Unique tests count' )
954+ worksheet .write (current_row , starting_column + 2 , test_count )
955+
906956 def add_static_data_description_worksheet (self ,
907957 worksheet : xlsxwriter .Workbook .worksheet_class ,
908958 name : str = 'Test Descriptions' ,
0 commit comments