I have written a simple test class for Play! 2.0:
public class TestLogin {
@Test
public void test() {
running(testServer(3333, fakeApplication(inMemoryDatabase())), HTMLUNIT, new Callback<TestBrowser>() {
@Override
public void invoke(TestBrowser browser) {
browser.goTo("http://localhost:3333");
assertThat(browser.$("section h1").first().getText()).isEqualTo("Login");
}
});
}
}
In Play v1 you could execute the command:
play test
And you are able to goto http://localhost:9000/@tests
. But now in Play 2.0 this does not work and it is not documented? I just want to start my Selenium tests, both manual (per testcase / method) as automated (a bunch of testcases).
How can this be achieved in Play2.0?
BTW: Runnning the command play test output the following in my terminal:
[warn] 1 warning
[info] No tests to run for test:test