Implicit method that returns the FakeApplication
instance for the current test.
Implicit method that returns the FakeApplication
instance for the current test.
The port used by the TestServer
.
The port used by the TestServer
. By default this will be set to the result return from
Helpers.testServerPort
, user can override this to provide their own port number.
Overriden to create new TestServer
instance and run it before executing each test.
Overriden to create new TestServer
instance and run it before executing each test.
the no-arg test function to run with a fixture
the Outcome
of the test execution
Trait that provides a new running
TestServer
instance for each test executed in a ScalaTestSuite
.It overrides ScalaTest's
withFixture
method to create newFakeApplication
instance, make it available from methodapp
, create a newTestServer
instance, and execute the test surrounded by a call toHelpers.running(TestServer(port, app))
. In the tests you can access theFakeApplication
using theapp
parameterless method and the port used by theTestServer
via theport
field.