Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test run summary time is wildly incorrect #29295

Open
mitchwd opened this issue Apr 10, 2024 · 1 comment
Open

Test run summary time is wildly incorrect #29295

mitchwd opened this issue Apr 10, 2024 · 1 comment
Labels
type: user experience Improvements needed for UX

Comments

@mitchwd
Copy link

mitchwd commented Apr 10, 2024

Current behavior

The time shown in the text summary at the end of a test is wildly different to the actual time the test took to run.

Running time npx cypress run --component shows two very different times:

 ✔  All specs passed!                        00:39      323      315        -        8        -  

npm run test:component  330.06s user 74.00s system 170% cpu 3:56.71 total

00:39 != 330 seconds

Desired behavior

I expect the summary to show the actual combined test run time.

Test code to reproduce

time npx cypress run --component

Cypress Version

13.7.0

Node version

18.17.1

Operating System

macOS Sonoma 14.4.1 (23E224)

Debug Logs

No response

Other

No response

@jennifer-shehane
Copy link
Member

@mitchwd Yah, this is a known issue. The test timing actually only shows the mocha execution times of the tests, so there could have been some other things happening during loading the browser, loading the spec, recording video, uploading to the Cloud (if recording) that aren't accurately captured in this timing.

I'd suggest running in debug mode mode to troubleshoot where timing may be going towards to narrow down the timing difference.

@jennifer-shehane jennifer-shehane added the type: user experience Improvements needed for UX label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: user experience Improvements needed for UX
Projects
None yet
Development

No branches or pull requests

2 participants