codeceptjs 4.0.2-beta.2 → 4.0.2-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/command/run-workers.js +12 -2
- package/package.json +1 -1
|
@@ -40,11 +40,22 @@ export default async function (workerCount, selectedRuns, options) {
|
|
|
40
40
|
|
|
41
41
|
output.print(`CodeceptJS v${Codecept.version()} ${output.standWithUkraine()}`)
|
|
42
42
|
output.print(`Running tests in ${output.styles.bold(numberOfWorkers)} workers...`)
|
|
43
|
-
output.print()
|
|
44
43
|
store.hasWorkers = true
|
|
45
44
|
|
|
46
45
|
const workers = new Workers(numberOfWorkers, config)
|
|
47
46
|
workers.overrideConfig(overrideConfigs)
|
|
47
|
+
|
|
48
|
+
// Show test distribution after workers are initialized
|
|
49
|
+
await workers.bootstrapAll()
|
|
50
|
+
|
|
51
|
+
const workerObjects = workers.getWorkers()
|
|
52
|
+
output.print()
|
|
53
|
+
output.print('Test distribution:')
|
|
54
|
+
workerObjects.forEach((worker, index) => {
|
|
55
|
+
const testCount = worker.tests.length
|
|
56
|
+
output.print(` Worker ${index + 1}: ${testCount} test${testCount !== 1 ? 's' : ''}`)
|
|
57
|
+
})
|
|
58
|
+
output.print()
|
|
48
59
|
|
|
49
60
|
workers.on(event.test.failed, test => {
|
|
50
61
|
output.test.failed(test)
|
|
@@ -68,7 +79,6 @@ export default async function (workerCount, selectedRuns, options) {
|
|
|
68
79
|
if (options.verbose) {
|
|
69
80
|
await getMachineInfo()
|
|
70
81
|
}
|
|
71
|
-
await workers.bootstrapAll()
|
|
72
82
|
await workers.run()
|
|
73
83
|
} catch (err) {
|
|
74
84
|
output.error(err)
|