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.
After investigation of the topic it seems that Play ignores SBT test configuration settings. I reported the issue here:
https://github.com/playframework/Play20/issues/849
I don't want to mark my answer accepted because I hope that I have overlooked something and that it's possible to run tests parallel in play framework.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With