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 SeleniumWebDriverss.Trait
MixedFixturescan be mixed into anyfixture.Suite. For convenience it is mixed into MixedPlaySpec. In afixture.Suite, tests can take a no-arg function.MixedFixturesprovides 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 theAppfunction, like this:If a test needs a
FakeApplicationand runningTestServer, use theServerfunction, 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 theSafarifunction:Here's a complete example: