cenfun / monocart-reporter

A playwright test reporter (Node.js)
https://cenfun.github.io/monocart-reporter/
MIT License
212 stars 12 forks source link

[Bug] Duration in reportData is incorrect when merging reports in sharding mode #157

Closed carlipprice closed 1 week ago

carlipprice commented 1 week ago

Describe the bug Duration always calculated by earliest start time and the end time of the latest start. If shard 1 starts first and run much longer than 2 and 3, then calculated duration would be wrong https://github.com/cenfun/monocart-reporter/blob/d65bdb88fbe2c91e8b9c903284914f23c5bff784/tests/example/example.spec.js#L158-L172

To Reproduce

Expected behavior Sharding test duration should be calculated by earliest start and latest end.

Make a minimal reproduction

cenfun commented 1 week ago

Thanks, it should be fixed in monocart-reporter@2.9.8

carlipprice commented 1 week ago

@cenfun It works on 2.9.8! Thanks for the quick response and fix.