(numberOfWorkers, config)
| 310 | } |
| 311 | |
| 312 | _initWorkers(numberOfWorkers, config) { |
| 313 | this.splitTestsByGroups(numberOfWorkers, config) |
| 314 | // For function-based grouping, use the actual number of test groups created |
| 315 | const actualNumberOfWorkers = isFunction(config.by) ? this.testGroups.length : numberOfWorkers |
| 316 | this.workers = createWorkerObjects(this.testGroups, this.codecept.config, getTestRoot(config.testConfig), config.options, config.selectedRuns) |
| 317 | this.numberOfWorkers = this.workers.length |
| 318 | } |
| 319 | |
| 320 | /** |
| 321 | * This splits tests by groups. |
no test coverage detected