MCPcopy Create free account
hub / github.com/webdriverio/webdriverio / onStart

Method onStart

packages/wdio-cli/src/interface.ts:108–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 }
107
108 onStart() {
109 const shardNote = this.#hasShard()
110 ? ` (Shard ${this._config.shard!.current} of ${this._config.shard!.total})`
111 : ''
112 this.log(chalk.bold(`\nExecution of ${chalk.blue(this.totalWorkerCnt)} workers${shardNote} started at`), this._start.toISOString())
113 if (this._inDebugMode) {
114 this.log(chalk.bgYellow(chalk.black('DEBUG mode enabled!')))
115 }
116 if (this._isWatchMode) {
117 this.log(chalk.bgYellow(chalk.black('WATCH mode enabled!')))
118 }
119 this.log('')
120 }
121
122 onSpecRunning(rid: string) {
123 this.onJobComplete(rid, this._jobs.get(rid), 0, chalk.bold(chalk.cyan('RUNNING')))

Callers 4

constructorMethod · 0.95
interface.test.tsFile · 0.80
setupFunction · 0.80
setupFunction · 0.80

Calls 4

#hasShardMethod · 0.95
logMethod · 0.95
boldMethod · 0.80
bgYellowMethod · 0.80

Tested by

no test coverage detected