I'm trying to run the cypress test with jenkins in my workplace. Due to Proxy issue I have uploaded my local node modules in s3 and before running the test I will download those modules and then run the test using this command.
But I'm getting below error Which I haven't understood. Can someone please explain what's wrong here ?
CYPRESS_CACHE_FOLDER=./cypress-cache ./node_modules/.bin/cypress run --headless --browser chrome --spec cypress/integration/api/api-test.spec.ts
The cypress npm package is installed, but the Cypress binary is missing.
We expected the binary to be installed here: /home/jenkins/agent/workspace/test-builds/cypress-ui-test-build/cypress-cache/6.1.0/Cypress/Cypress
Reasons it may be missing:
- You're caching 'node_modules' but are not caching this path: /home/jenkins/.cache/Cypress
- You ran 'npm install' at an earlier build step but did not persist: /home/jenkins/.cache/Cypress
Properly caching the binary will fix this error and avoid downloading and unzipping Cypress.
Alternatively, you can run 'cypress install' to download the binary again.
https://on.cypress.io/not-installed-ci-error
----------
Aucun commentaire:
Enregistrer un commentaire