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

Improve backend code coverage performance #933

Open
ryanthemanuel opened this issue Feb 20, 2025 · 0 comments
Open

Improve backend code coverage performance #933

ryanthemanuel opened this issue Feb 20, 2025 · 0 comments

Comments

@ryanthemanuel
Copy link
Contributor

This code uses a cy.request to query the running dev servers to get their coverage which then just gets loaded in client-side and immediately sent to the Cypress server via a cy.task. It likely could be more efficient (skip one network hop, avoid transferring the data to the browser, and populating the cy.task message field with the large amount of data) to query the dev server directly from the Cypress app server.

The only way this falls apart is if the dev servers have to be accessed via cy.request but i'm not sure that is a likely scenario. We could always detect whether the coverage routes are accessible first and then fallback to the existing logic otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants