Running cypress in Kubernetes as pods

7/2/2021

Is there a way to run cypress in kubernetes pod and run tests in parallel in azure devops?

I was able to run it in a pod but was not able to run the tests in parallel. When only one test is executed it worked but on parallel run the below error message is displayed

Gdk-Message: 15:51:35.016: Cypress: Fatal IO error 11 (Resource temporarily unavailable) on X server :99.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! cypress_automation@1.0.0 cy:run: cypress run --env allure=true "--spec" "'cypress/integration/src/tests/smoke/loginSpec.js'" "--reporter" "cypress-parallel/json-stream.reporter.js" npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the cypress_automation@1.0.0 cy:run script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! code ELIFECYCLE npm ERR! errno 1

npm

ERR! cypress_automation@1.0.0 cy:run: cypress run --env allure=true "--spec" "'cypress/integration/src/tests/smoke/login3Spec.js'" "--reporter" "cypress-parallel/json-stream.reporter.js"

npm

ERR! Exit status 1

npm

ERR!

npm

ERR! Failed at the cypress_automation@1.0.0 cy:run script.

npm

ERR! This is probably not a problem with npm. There is likely additional logging output above.

-- sreejith rajagopal
cypress
kubernetes

0 Answers