@@ -61,7 +61,6 @@ class SuiteReport(SuiteData):
6161
6262 # str's for collapsed sections in markdown
6363 open_collapsed = "<details>"
64- open_collapsed_show = "<details open>"
6564 close_collapsed = "</details>"
6665
6766 def __init__ (self , suite_path : Path ):
@@ -172,17 +171,6 @@ def create_task_tables(self, parsed_tasks: Dict[str, List[str]]):
172171 order = list (parsed_tasks .keys ())
173172 order .sort (key = lambda val : sort_order .get (val , len (sort_order )))
174173
175- # Create summary table
176- self .trac_log .extend (create_markdown_row ("State" , "Count" , header = True ))
177- for state in order :
178- tasks = parsed_tasks [state ]
179- if not tasks :
180- continue
181- if state == "pink failure" :
182- state = self .pink_text
183- self .trac_log .extend (create_markdown_row (state , len (tasks )))
184- self .trac_log .append ("" )
185-
186174 state_emojis = {
187175 "failed" : ":x:" ,
188176 "succeeded" : ":white_check_mark:" ,
@@ -198,12 +186,10 @@ def create_task_tables(self, parsed_tasks: Dict[str, List[str]]):
198186 continue
199187 if state == "pink failure" :
200188 state = self .pink_text
201- if "fail" in state :
202- # Have the collapsed section expanded by default
203- self .trac_log .append (self .open_collapsed_show )
204- else :
205- self .trac_log .append (self .open_collapsed )
206- self .trac_log .append (f"<summary>{ emoji } { state } tasks</summary>" )
189+ self .trac_log .append (self .open_collapsed )
190+ self .trac_log .append (
191+ f"<summary>{ emoji } { state } tasks - { len (tasks )} </summary>"
192+ )
207193 self .trac_log .append ("" )
208194 self .trac_log .extend (create_markdown_row ("Task" , "State" , header = True ))
209195 for task in sorted (tasks ):
0 commit comments