MCPcopy
hub / github.com/codeceptjs/CodeceptJS / addStats

Method addStats

lib/result.js:224–236  ·  view source on GitHub ↗

* Adds stats to this result. * * @param {Partial } [newStats]

(newStats = {})

Source from the content-addressed store, hash-verified

222 * @param {Partial<Stats>} [newStats]
223 */
224 addStats(newStats = {}) {
225 this._stats.passes += newStats.passes || 0
226 this._stats.failures += newStats.failures || 0
227 this._stats.tests += newStats.tests || 0
228 this._stats.pending += newStats.pending || 0
229 this._stats.failedHooks += newStats.failedHooks || 0
230
231 // do not override start time
232 this._stats.start = this._stats.start || newStats.start
233
234 this._stats.end = newStats.end || this._stats.end
235 this._stats.duration = newStats.duration
236 }
237}
238
239export default Result

Callers 4

_listenWorkerEventsMethod · 0.80
constructorMethod · 0.80
resultMethod · 0.80
result.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected