scalatestplus-play icon indicating copy to clipboard operation
scalatestplus-play copied to clipboard

Doesn't seem like the JVM arguments make their way into the Application.

Open dk8996 opened this issue 6 years ago • 1 comments

When trying to run the test using GuiceOneAppPerSuite doesn't seem like the JVM arguments set in Build.scala are being passed into the Application instance of the JVM.


         implicit val ec = scala.concurrent.ExecutionContext.global
         val cc = Helpers.stubControllerComponents()

         val controller = new Model(cc, new Authenticated(cc.parsers.defaultBodyParser))
         val result: Future[Result] = controller.getPage(1L).apply(FakeRequest())

dk8996 avatar Oct 21 '19 21:10 dk8996

@dk8996 I'm not sure I understand what the pasted code is demonstrating.

Also, are you running the tests in forked JVMs?

ignasi35 avatar Oct 23 '19 08:10 ignasi35