MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / sumDuration

Function sumDuration

lib/plugin/junitReporter.js:284–286  ·  view source on GitHub ↗
(tests)

Source from the content-addressed store, hash-verified

282}
283
284function sumDuration(tests) {
285 return tests.reduce((sum, t) => sum + (t.duration || 0), 0)
286}
287
288function toSeconds(ms) {
289 return (Math.max(0, ms) / 1000).toFixed(3)

Callers 1

buildXmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected