(step)
| 246 | } |
| 247 | |
| 248 | function stepDuration(step) { |
| 249 | if (!step) return 0 |
| 250 | if (typeof step.duration === 'number' && step.duration >= 0) return step.duration |
| 251 | if (step.startTime && step.endTime) return Math.max(0, step.endTime - step.startTime) |
| 252 | return 0 |
| 253 | } |
| 254 | |
| 255 | function groupBySuite(tests) { |
| 256 | const groups = [] |