NoArg
subclass that provides a FakeApplication
fixture.
NoArg
subclass that provides a fixture composed of a FakeApplication
, running TestServer
, and
Selenium ChromeDriver
.
NoArg
subclass that provides a fixture composed of a FakeApplication
, running TestServer
, and
Selenium FirefoxDriver
.
NoArg
subclass that provides a fixture composed of a FakeApplication
, running TestServer
, and
Selenium HtmlUnitDriver
.
NoArg
subclass that provides a fixture composed of a FakeApplication
, running TestServer
, and
Selenium InternetExplorerDriver
.
NoArg
subclass that provides a fixture composed of a FakeApplication
, running TestServer
, and
Selenium SafariDriver
.
NoArg
subclass that provides a fixture composed of a FakeApplication
and running TestServer
.
Trait that helps you provide different fixtures to different tests: a
FakeApplication
, aTestServer
, or one of the SeleniumWebDrivers
s.Trait
MixedFixtures
can be mixed into anyfixture.Suite
. For convenience it is mixed into MixedPlaySpec. In afixture.Suite
, tests can take a no-arg function.MixedFixtures
provides several no-arg function classes (classes extendingFunction0
) that can be used to provide different fixtures for different tests.If a test needs a
FakeApplication
, use theApp
function, like this:If a test needs a
FakeApplication
and runningTestServer
, use theServer
function, like this:If a test needs a
FakeApplication
, runningTestServer
, and Selenium driver, use one of functionsChrome
,Firefox
,HtmlUnit
,InternetExplorer
, orSafari
. If the chosen Selenium driver is unavailable on the host platform, the test will be automatically canceled. Here's an example that uses theSafari
function:Here's a complete example: