Functional tests involving the TestServer
class of the Play Framework seem to work only inside the Play console.
Unfortunately the stock test runner in the Play console executed by the play test
command executes the tests in sequence and that takes a lot of time. I think they would run faster if they were executed parallel.
Is there a way to run the tests parallel?
Update: SBT supports running tests parallel and in different JVMs that makes it possible to have multiple TestServer
instances parallel if they are listening on different ports, in theory. It seems Play ignores these settings. See my reported issue: https://github.com/playframework/Play20/issues/849. The bounty goes for somebody who shows a way that makes the Play Framework honor these SBT test settings to run junit based tests parallel in different JVMs with a Build.scala file.