Pipelines: running protractor tests

I'm trying to configure Bitbucket pipelines to test my angular web app. 

I've already dockerized my app and configured all necessary environment, so my app runs in docker container successfully.
My problem is that all my protractor tests fail in Bitbucket pipelines by timeout (Angular is not found on the page).

But when i start my docker container on my local machine, the tests work properly.
I want to to make my tests work with the pipelines. 

2 answers

Can you share, how you integrated protractor with Bitbucket pipeline?

Did you manage to run your protractor tests on pipelines?

Actually i followed the manual described here: https://confluence.atlassian.com/bitbucket/bitbucket-pipelines-792496469.html.
But i also had to create docker image for my app and configure there required environment.
If you want to ask something exact, you are welcome. I'll share my experience. 

Can you please guide me on how to run my protractor tests on the pipeline? My yml is this

 

image: adrianmarinica/bitbucket-pipelines-protractor

pipelines:
default:
- step:
caches:
- node
script: # Modify the commands below to build your repository.
- npm install
- protractor protractor.conf.js
 
and when I run it, I get this error on the bitbucket console
 
"Failed: Angular could not be found on the page...."

Same issue with me:

1. What are the needed source files to run protractor in bitbucket pipeline since it is serverless?

2. And what is the correct configuration in the .yml file?

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

635 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot