add cypress component test in jenkins pipeline #26176
Unanswered
vahidsamimi
asked this question in
CI setup
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to add a new stage to run Cypress component tests in a Jenkins pipeline. I have installed Cypress 12.7 and added it to the package.json file of my Angular project to run Cypress like this:
"cypress:run": " cypress run --component --browser chrome --headless"
in jenkinsfile added the new stage like that:
First, I ran it without
--headless
parameter, but I got an error that I should install plugin Xvfbafter read the cypress doc, I added the env variable
ELECTRON_RUN_AS_NODE = 1
in cypress stage in jenkinsfile.but now I get the following error when the pipeline starts to run:
Beta Was this translation helpful? Give feedback.
All reactions