ps0604
ps0604

Reputation: 1071

Auto testing a Play for Scala application

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

Answers (1)

Argurth
Argurth

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

Related Questions