Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parallel test runner for play framework

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.

like image 685
Tamas Avatar asked Mar 11 '13 12:03

Tamas


1 Answers

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.

like image 157
Tamas Avatar answered Oct 02 '22 21:10

Tamas