sdespolit
sdespolit

Reputation: 913

how to run playframework FunctionalTest through Eclipse?

and the second question:

is it possible to run them all in a bunch through Eclipse?

Upvotes: 1

Views: 1357

Answers (2)

sojin
sojin

Reputation: 4694

One approach could be, Install 'antify' module and run 'play antify' on your application. It will create a build.xml for your app (which would import the needed targets from application-build.xml file) and run 'auto-test' from eclipse.

Upvotes: 2

RevBingo
RevBingo

Reputation: 307

FunctionalTest and UnitTest extend BaseTest, which is annotated with the PlayJunit4TestRunner, so you should find that you can just run tests as you would with any other test (i.e. Run As > Junit Test). You'll see the Play environment being initialised on the console before the tests actually run.

One problem I've found is that running a whole package of Play tests in Eclipse is buggy, so I tend to just run one at a time in Eclipse and then use Play's own testrunner to verify the whole suite.

Upvotes: 1

Related Questions