Zed
Zed

Reputation: 191

Running Protractors in Jenkins

I was just wondering if it is possible to run protractor e2e tests in Jenkins with every build. Currently we trigger test cases manually and they are not part of Jenkins but somehow I need them to be run automatically and show the results (failures/pass) as part of the build. Can anyone share their experience.

Regards Syed Zaidy

Upvotes: 1

Views: 2048

Answers (2)

Yes, it is possible to run Protractor tests from a Jenkins job. To do this, you will need a headless browser. Read about Headless browsers here:

You can follow the following instructions and install npm, protractor and chrome headless in the Jenkins box here

Upvotes: 0

Gunderson
Gunderson

Reputation: 3266

Yes this is possible, you set this up under the Build Triggers section of your job. You have the options to build periodically, build remotely, build after another project is built, or build after a push to GitHub/BitBucket.

You can also put your tests in the pipeline, "downstream" from another job, so they are automatically triggered whenever that job completes.

Upvotes: 2

Related Questions