O'Reilly logo

Play Framework Cookbook by Alexander Reelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Test automation with Jenkins

If you are already having a continuous integration system, it might already be Jenkins as it is quite common in the Java world. If you do not want to set up another system, you should try to use Jenkins as well to run automated tests of your play applications. This recipe will help you to do a quick setup of Jenkins and make it ready to deploy on a Play application.

You can find the source code of this example in the examples/chapter7/test-jenkins directory.

Getting ready

A running Jenkins is essential of course. Either use the current running one, or get a fresh copy from http://www.jenkins-ci.org, download the WAR file and just start it with the following:

java -jar jenkins.war

Again, we will also set up a repository ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required