Skip to content

Commit 9e635b9

Browse files
committed
fix missing worker index in cli mode
1 parent 8d94798 commit 9e635b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/command/workers/runTests.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ initPromise = (async function () {
104104
// important deep merge so dynamic things e.g. functions on config are not overridden
105105
config = deepMerge(baseConfig, overrideConfigs)
106106

107-
codecept = new Codecept(config, options)
107+
// Pass workerIndex as child option for output.process() to display worker prefix
108+
const optsWithChild = { ...options, child: workerIndex }
109+
codecept = new Codecept(config, optsWithChild)
108110
await codecept.init(testRoot)
109111
codecept.loadTests()
110112
mocha = container.mocha()

0 commit comments

Comments
 (0)