I was wondering how I can run a node app in the background on the bitbucket pipeline.
I'd like to do this so that I can run a selenium test connecting to localhost. For example I have this line in my package.json "start-qa": "cross-env NODE_ENV=qa node app.js" and I'd like to be able to run "start-qa" but since it doesn't run the background none of the other lines in my bitbucket-pipelines.yml file is being run.
Would there be any way for me to perform my selenium test this way or is my only option connecting to an actual web address and not locally?
Hey @dervisc,
the easiest way would be to use Pipelines services: https://confluence.atlassian.com/bitbucket/use-services-and-databases-in-bitbucket-pipelines-874786688.html
You can specify the Docker service (based on a Docker image that runs your app), and let your main build execute Selenium tests that call out to this Docker service.
Learn why Compass was built to tackle dev experience at scale. See how Atlassian uses it to boost visibility, reduce cognitive load, and drive consistency—plus tips to get started and customize your IDP for stronger team engagement.
Join the webinar ✨Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.