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

Method getNextTest

lib/workers.js:442–449  ·  view source on GitHub ↗

* Gets the next test from the pool * @returns {String|null} test file path or null if no tests available

()

Source from the content-addressed store, hash-verified

440 * @returns {String|null} test file path or null if no tests available
441 */
442 getNextTest() {
443 // Lazy initialization of test pool on first call
444 if (!this.testPoolInitialized) {
445 this._initializeTestPool()
446 }
447
448 return this.testPool.shift()
449 }
450
451 /**
452 * @param {Number} numberOfWorkers

Callers 2

_listenWorkerEventsMethod · 0.95
worker_test.jsFile · 0.80

Calls 1

_initializeTestPoolMethod · 0.95

Tested by

no test coverage detected