Category : cypress

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 ..

Read more

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 ..

Read more

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 ..

Read more

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 ..

Read more

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 ..

Read more

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 ..

Read more