Parallel test case execution #12026
Replies: 2 comments 1 reply
-
AFAIK When "running" a Play app or server in tests, these by default still get executed sequentially, because of runSynchronized . You can override shouldRunSequentially to change that, like we do here:and here: This behaviour was added because of what's written in the comment:
However with Play 2.9 / 3.0 tests that open a port will run on a random port now, so we should be able to set So this runSynchronized method comes from a time when we still used a fixed port for tests and a global app...
However AFAIK, when I worked on the random port thing a couple of months ago, and if I recall correctly, there is more stuff that needs to be done so we can switch to
This is something to be looked into Play 2.10 and 3.1. BTW, if you use Play Java the same is true like described above, see: playframework/testkit/play-test/src/main/java/play/test/Helpers.java Lines 561 to 563 in 6ddc99c |
Beta Was this translation helpful? Give feedback.
-
Hi @mkurz, I was looking into the issues and PR's mentioned wrt this. I have a quick doubt wrt this. I saw the implementations of DevServerStart and ProdServerStart. I couldn't understand the need to initialise LoggerConfigurator before the start of application in DevServerStart? |
Beta Was this translation helpful? Give feedback.
-
Hey how to run test cases parallely in scala using play framework
Also I have added both these in
build.sbt
but still not running test cases in parallelBeta Was this translation helpful? Give feedback.
All reactions