MCPcopy
hub / github.com/codeceptjs/CodeceptJS / createTestPool

Method createTestPool

lib/workers.js:398–404  ·  view source on GitHub ↗

* @param {Number} numberOfWorkers

(numberOfWorkers)

Source from the content-addressed store, hash-verified

396 * @param {Number} numberOfWorkers
397 */
398 createTestPool(numberOfWorkers) {
399 // For pool mode, create empty groups for each worker and initialize empty pool
400 // Test pool will be populated lazily when getNextTest() is first called
401 this.testPool = []
402 this.testPoolInitialized = false
403 this.testGroups = populateGroups(numberOfWorkers)
404 }
405
406 /**
407 * Initialize the test pool if not already done

Callers 1

splitTestsByGroupsMethod · 0.95

Calls 1

populateGroupsFunction · 0.85

Tested by

no test coverage detected