In build.sbt
add the following lines:
Keys.fork in Test := false
parallelExecution in Test := false
- Start the play console in debug mode
$ play debug
. - Create a RemoteDebug run configuration in IntelliJ. This is only a debugger, not a compiler.
- Run this configuration listening on port 9999.
- Add a breakpoint to your test.
- In the console run your test
> test-only core.services.helpers.ServiceHelperTest
. - Watch IntelliJ break on breakpoint.
- Profit $$$.