Chapter 12. Testing your application
This chapter covers
- An introduction to testing with Play
- Explaining the different levels of testing
- Unit, functional, and integration testing with Play and JUnit
- Browser testing with Play and Selenium
Now that we have a complete application, we need to start thinking about further development and maintenance. But as you evolve your application, new bugs may creep into your code, and changes in external factors may introduce errors in your application even if you never touch it.
Automated testing is an invaluable tool when you want to make sure that your application still works like you expect it to. In addition, automated tests also help you during development—they allow you to verify that your code does what you think it does.
In this chapter, we’ll show you different kinds of tests that help you test applications at different levels, and how Play helps you create and run these tests.