MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / runTests

Function runTests

lib/command/workers/runTests.js:231–251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229let globalStats = { passes: 0, failures: 0, tests: 0, pending: 0, failedHooks: 0 }
230
231async 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
253async function runPoolTests() {
254 try {

Callers 1

runTests.jsFile · 0.85

Calls 6

listenToParentThreadFunction · 0.85
initializeListenersFunction · 0.85
disablePauseFunction · 0.85
bootstrapMethod · 0.80
teardownMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected