Reputation: 1071
Should I test it using JUnit (as proposed in Play's website) or should I test the GET and POST responses in the javascript, using a tool like Selenium (by the way, my front-end is AngularJS). What are the pros/cons?
Upvotes: 1
Views: 46
Reputation: 644
Personnaly, I use scala-test for those test, you can provide a custom database, do some FakeRequest, and see if the results are correct.
There is a lot of documentation on this subject on the Play framework website :
Good luck ;)
Upvotes: 1