Skip to content

Cypress E2E tests not running in CI mode on gitlab.com #10944

@usamahamed

Description

@usamahamed

Intro

I'm not 100% sure where to ask this question but we struggle to setup cypress in the CI runners of gitlab.com. We use the default blueprint from vue-cli to scaffold the project. We tried various of different gitlab.yml configurations. Currently we run out of CI minutes because we tried so many different combinations.

We tried different docker images (from here: https://github.com/cypress-io/cypress-docker-images/) and also followed the best practices from Crypress which we found here: https://gitlab.com/cypress-io/cypress-example-docker-gitlab/

We just had no luck getting it running. After spending hours of hours we are not sure if it's even possible to get Cypress running with the default setup from vue-cli.

Since it's not a real "JavaScript" issue it's hard to fill out the default template properly but we tried to provide as much information as possible. In the code bin you find our results. The HTML column is the output and the JS column is the YML file. I hope you can use this information somehow

Version

2.6.10

Reproduction link

https://codepen.io/usamahamed/pen/WNbpdPE

Steps to reproduce

this this the gitlab CI pipeline result including in codepen
it give this

CypressError: cy.visit() failed trying to load:
We failed looking for this file at the path:
/builds/room/web/room-ui/ 

What is expected?

Expected CI to run successfully

What is actually happening?

Pipeline is failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions