Bitbucket Pipelines hangs when testing a Nuxt app with Cypress #21367
Unanswered
theolavaux
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
-
I have a Nuxt app that I want to test with Cypress in CI.
I've seen in the Cypress documentation that you have to install some third-party package to wait for the server to start and then run your tests.
I then installed the wait-on package and created these scripts in package.json.
package.json
For the CI, I install the dependencies, run
nuxt generate
to bundle the app and then test using the step below.bitbucket-pipelines.yml
It works when I test it locally but in CI, Bitbucket hangs and nothing happens.
I've also seen the start-server-and-test package but I don't know how to pass extra arguments like (
--config video=true --parallel --ci-build-id $BITBUCKET_BUILD_NUMBER
) torun:cypress
from the CI."ci": "start-server-and-test 'yarn start' http://localhost:3000 'run-cypress <extra-arguments-here?>'"
Like this but with arguments from the CI to retrieve
$BITBUCKET_BUILD_NUMBER
Beta Was this translation helpful? Give feedback.
All reactions