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

Method reset

lib/result.js:33–56  ·  view source on GitHub ↗

* Resets all collected stats, tests, and failure reports.

()

Source from the content-addressed store, hash-verified

31 * Resets all collected stats, tests, and failure reports.
32 */
33 reset() {
34 this._stats = {
35 passes: 0,
36 failures: 0,
37 tests: 0,
38 pending: 0,
39 failedHooks: 0,
40 start: null,
41 end: null,
42 duration: 0,
43 }
44
45 /**
46 * @type {CodeceptJS.Test[]}
47 * @private
48 */
49 this._tests = []
50
51 /**
52 * @type {string[][]}
53 * @private
54 */
55 this._failures = []
56 }
57
58 /**
59 * Sets the start time to the current time.

Callers 15

constructorMethod · 0.95
runTestsMethod · 0.45
startFunction · 0.45
heal.jsFile · 0.45
effects_test.jsFile · 0.45
config_test.jsFile · 0.45
ai_test.jsFile · 0.45
heal_test.jsFile · 0.45
bdd_test.jsFile · 0.45
recorder_test.jsFile · 0.45
els_test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected