Skip to content

Improve backend code coverage performance #933

Open
@ryanthemanuel

Description

@ryanthemanuel

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions