playframework icon indicating copy to clipboard operation
playframework copied to clipboard

Play applications should by default run tests in parallel

Open marcospereira opened this issue 8 years ago • 1 comments

Play Version

This is a small change that can happen for 2.7+ if we have time.

API

Java and Scala.

Expected Behavior

Since we have changed the default of play.allowGlobalApplication to false (see #8183), we can now change the value of parallelExecution in Test to true enabling test suites in Play applications to run faster. Users can then run tests sequentially if they need/want.

Actual Behavior

The default is not to run tests in parallel.

marcospereira avatar Aug 18 '18 00:08 marcospereira

While it's a simple configuration to change back, I suspect there will be many users who upgrade and see tests randomly break without understanding why. Even if we explain this change in the migration guide, they may not have fully read it, or they might not understand that they're using global state in their app, possibly due to a Play plugin or some other code they don't control.

Perhaps it would be better, at least as a first step, to advertise in the migration guide that Play itself no longer uses global state, so if your app doesn't use any global state elsewhere you can try setting parallelExecution in Test := true.

gmethvin avatar Sep 09 '18 23:09 gmethvin