O'Reilly logo

Learning Play! Framework 2 by Andy Petrella

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

Chapter 8. Smashing All Test Layers

A software development stack that does not include testing, in the age of test-driven development (TDD), is like shooting itself in the foot. A web framework that is involved transversally with the runtime environment should especially enable the developer to assert all phases of his/her work – from core logic to an HTML presentation through business logic.

Thankfully, Play! Framework 2 is a very good web framework. It provides plenty of helpers to test all those layers. Those helpers will be helpful not only in unit testing but also in applicative tests (business) or functional ones (UI, REST, and so on).

Even though Play! 2 can be integrated with either the Java or Scala testing frameworks, in this book we'll ...

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