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

Method setup

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

Source from the content-addressed store, hash-verified

85 }
86
87 setup() {
88 this._jobs = new Map()
89 this._start = new Date()
90
91 /**
92 * The relationship between totalWorkerCnt and these counters are as follows:
93 * totalWorkerCnt - retries = finished = passed + failed
94 */
95 this.result = {
96 finished: 0,
97 passed: 0,
98 retries: 0,
99 failed: 0
100 }
101
102 this._messages = {
103 reporter: {},
104 debugger: {}
105 }
106 }
107
108 onStart() {
109 const shardNote = this.#hasShard()

Callers 6

constructorMethod · 0.95
onPrepareMethod · 0.80
ai-handler.test.tsFile · 0.80
constructorMethod · 0.80
cleanUpMethod · 0.80
interface.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected