An implicit instance of FakeApplication
.
An implicit instance of FakeApplication
.
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 start TestServer
before running the tests, pass a FakeApplication
into the tests in
args.configMap
via "app" key and port used by the started TestServer
via "port"key.
Overriden to start TestServer
before running the tests, pass a FakeApplication
into the tests in
args.configMap
via "app" key and port used by the started TestServer
via "port"key. It then calls
super.run
to execute the tests and stop TestServer
automatically after test executions.
an optional name of one test to run. If None
, all relevant tests should be run.
I.e., None
acts like a wildcard that means run all relevant tests in this Suite
.
the Args
for this run
a Status
object that indicates when all tests and nested suites started by this method have completed, and whether or not a failure occurred.
Trait that provides one
TestServer
andFakeApplication
instance per ScalaTestSuite
.It overrides ScalaTest's
Suite.run
method to start aTestServer
before test execution, and stop theTestServer
automatically after test execution has completed. In the suite that mixes inOneServerPerSuite
, you can access theFakeApplication
via theapp
field and the port used by theTestServer
via theport
field. In nested suites, you can access theFakeApplication
and port number from theargs.configMap
, where they are associated with keys"app"
and"port"
, respectively.