File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,6 @@ function getDetailedResults(testResults: MatlabTestFile[][]): string {
9393 <th>Duration(s)</th>
9494 </tr>` +
9595 testResults . flat ( ) . map ( file => generateTestFileRow ( file ) ) . join ( '\n' ) +
96- // ${testResults.flat().map(file => generateTestFileRow(file)).join('\n')}
9796 `</table>
9897 </details>` ;
9998}
@@ -105,9 +104,9 @@ function generateTestFileRow(file: MatlabTestFile): string {
105104 <td>
106105 <details>
107106 <summary><b>${ statusEmoji } ${ file . name } </b></summary>
108- <ul style="list-style-type: none;">
109- ${ file . testCases . map ( tc => `<li>${ getStatusEmoji ( tc . status ) } ${ tc . name } </li>` ) . join ( '\n' ) }
110- </ul>
107+ <ul style="list-style-type: none;">` +
108+ file . testCases . map ( tc => `<li>` + getStatusEmoji ( tc . status ) + ` ` + tc . name + ` </li>`) . join ( '\n' ) +
109+ ` </ul>
111110 </details>
112111 <td align="center" valign="top"><b>${ file . duration . toFixed ( 2 ) } </b>
113112 </td>
@@ -126,9 +125,9 @@ function getFailedTests(testResults: MatlabTestFile[][]): string {
126125 <tr>
127126 <th>Test</th>
128127 <th>Details</th>
129- </tr>
130- ${ failedTests . map ( test => generateFailedTestRow ( test ) ) . join ( '\n' ) }
131- </table>
128+ </tr>` +
129+ failedTests . map ( test => generateFailedTestRow ( test ) ) . join ( '\n' ) +
130+ ` </table>
132131 </details>` ;
133132}
134133
@@ -139,7 +138,9 @@ function generateFailedTestRow(test: MatlabTestCase): string {
139138 <td>
140139 <details>
141140 <summary>View details</summary>
142- <pre>${ test . diagnostics . map ( d => d . report ) . join ( '\n' ) } </pre>
141+ <pre>` +
142+ test . diagnostics . map ( d => d . report ) . join ( '\n' ) +
143+ `</pre>
143144 </details>
144145 </td>
145146 </tr>` ;
You can’t perform that action at this time.
0 commit comments