Override this function to instantiate the components - a factory of sorts.
Override this function to instantiate the components - a factory of sorts.
the components to be used by the application
Implicit method that returns the Application
instance for the current test.
Implicit method that returns the Application
instance for the current test.
a context to use to create the application.
Creates new instance of Application
with parameters set to their defaults.
Creates new instance of Application
with parameters set to their defaults. Override this method if you
need a Application
created with non-default parameter values.
new application instance and set the components. This must be called for components to be properly set up.
Creates a new Application
instance before executing each test, and
ensure it is cleaned up after the test completes.
Creates a new Application
instance before executing each test, and
ensure it is cleaned up after the test completes. You can access the Application
from
your tests via app
.
the no-arg test function to run with a fixture
the Outcome
of the test execution
An extension of BaseOneAppPerTest providing Compile-time DI.
Trait that provides a new
Application
instance for each test.This
TestSuiteMixin
trait's overriddenwithFixture
method creates a newApplication
before each test and ensures it is cleaned up after the test has completed. You can access theApplication
from your tests as methodapp
(which is marked implicit).By default, this trait creates a new
Application
for each test according to the components defined in the test.Here's an example that demonstrates some of the services provided by this trait: