adamgruber / mochawesome

A Gorgeous HTML/CSS Reporter for Mocha.js
https://gitter.im/mochawesome/general
MIT License
1.06k stars 160 forks source link

Report shows incorrect test duration time #403

Open GabRog opened 2 months ago

GabRog commented 2 months ago

Description Cypress tests were run and then mochawesome report was generated. Cypress logged the time of test in console - it lasted 50.037 s However, on html report the test was listed with time: 50.37 s.

The test suite consisted of two tests - another one lasted: 10.498 s. Total time of spec was: 1:00:535m, so 60.535 s.

The correct time is 50.037 s, according to Cypress console output and the sum of test duration in spec. 50.037 + 10.489 = 60.535 So it seems that 0 was omitted in 50.37s

Screenshots Screenshot 2024-06-27 at 9 50 01 PM

Environment