()
| 147 | } |
| 148 | |
| 149 | function runSuite() { |
| 150 | const failures = []; |
| 151 | |
| 152 | for (const tc of testCases) { |
| 153 | const report = runTest(tc); |
| 154 | if (report.errors.length > 0) { |
| 155 | failures.push(report); |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | const errorsToReport = failures.map(serializeError).join('\n--------\n'); |
| 160 | |
| 161 | assert.strictEqual(failures.length, 0, `${failures.length} tests failed\n\n${errorsToReport}`); |
| 162 | } |
| 163 | |
| 164 | runSuite(); |
no test coverage detected