()
| 229 | let globalStats = { passes: 0, failures: 0, tests: 0, pending: 0, failedHooks: 0 } |
| 230 | |
| 231 | async function runTests() { |
| 232 | try { |
| 233 | await codecept.bootstrap() |
| 234 | } catch (err) { |
| 235 | throw new Error(`Error while running bootstrap file :${err}`) |
| 236 | } |
| 237 | listenToParentThread() |
| 238 | initializeListeners() |
| 239 | disablePause() |
| 240 | try { |
| 241 | await codecept.run() |
| 242 | } catch (err) { |
| 243 | throw err |
| 244 | } finally { |
| 245 | try { |
| 246 | await codecept.teardown() |
| 247 | } catch (err) { |
| 248 | // Ignore teardown errors |
| 249 | } |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | async function runPoolTests() { |
| 254 | try { |
no test coverage detected