My goal is to run Cypress tests used for my test stage in a pipeline on GitLab. Originally I used an alpine:3.13 image. There I install all the dependencies. The app consists of two TypeScript based components, which I will call front and back. Each have an application part and an API. I run the ..
I’m creating a Docker image based on alpine:3.13, which is used for my test stage, running in a pipeline on GitLab. There I install all the dependencies. The app consists of two components, which I will call front and back. I run the following command to set up front and back and finally execute cypress ..
What am I trying to achieve? A) To run an interactive container to install dependencies the image doesn’t have and, then get ready this container to make a PoC Which is the image? cypress/included:8.6.0 What command am I using? A) sudo docker container run -it cypress/included:8.6.0 bash Which was the result? [18:1019/104138.143540:ERROR:bus.cc(392)] Failed to connect ..
In Jenkins I am running a build with Cypress test, which when failed, a screenshot is created. I know the path of the screenshot – under mytest/cypress/screenshots/… But as it is in docker container, how can I display that screenshot? I tried to use : archiveArtifacts artifacts: ‘cypress/screenshots/**/*.png’ but this seems not working, I don’t ..
In advance, my docker skills aren’t great so apologies if the answer is blatantly obvious. TLDR: Locally run website which I need to specify the port to access, how do I allow a docker container to access that website? More info: I have two websites that I run locally: The first is localapp.company.com that is ..
In Jenkins I have a docker container, in which I want to run my Cypress tests (cucumber preprocessor). All feature files are placed in myrepo/cypress/integration/features/**/.feature That means I have multiple subfolders under feature folder and in each subfolder are placed the feature files. (e.g. myrepo/cypress/integration/features/admin/testadmin.feature) In package.json I have defined for scripts test: "test": "node_modules.bincypress ..
In Jenkins I am running the frontend angular service in Docker and want also run Cypress and connect to the running angular server. In Angular Dockerfile is EXPOSE 8080, what I can’t change, but the Cypress BaseURl is set to : http://localhost:4200. That’s why I am mapping that port, when building the frontend: sh ‘docker ..
I am following this article to run Cypress test with Docker. I encountered issue where I need cypress.json file to be included in docker-compose.yaml. Here is example of my docker-compose.yamlfile looks like version: ‘3.3’ services: cypress: image: "cypress/included:7.7.0" enviroment: – HTTP_PROXY=somekind_url working_dir: location of cypress files volumes: – ./:/cypress command: [-b, chrome] My question is ..
I’m trying to run 2 cypress docker container in parallel using node js spawn docker run -v path/to/ws:/e2e -w /e2e –network host cypress/included:8.0.0 –spec ‘cypress/integration/cytorus-cache/1.feature’ docker run -v path/to/ws:/e2e -w /e2e –network host cypress/included:8.0.0 –spec ‘cypress/integration/cytorus-cache/2.feature’ This works fine on my local Ubuntu machine. But it fails on Jenkins Ubuntu box with following error; Xvfb ..
Hello Im looking for help.| I have a docker image that builds my Cypress tests in which I would like to override the baseURL. The problems is Cypress detects the baseUrl env variables but it doesn’t apply them to the configuration and baseUrl still points to the localhost. docker run –name test –env CI="true" –env ..